Spaces:
Runtime error
Runtime error
DmitrMakeev
commited on
Commit
•
1e7cbdc
1
Parent(s):
d0ab267
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def openai_chat(prompt, api_key):
|
|
10 |
completions = openai.Completion.create(
|
11 |
engine="text-davinci-003",
|
12 |
prompt=prompt+"The following is the prompt from teacher working in canvas infrastructure",
|
13 |
-
max_tokens=
|
14 |
temperature=0.5,
|
15 |
stop=[" Human:", " AI:"]
|
16 |
)
|
|
|
10 |
completions = openai.Completion.create(
|
11 |
engine="text-davinci-003",
|
12 |
prompt=prompt+"The following is the prompt from teacher working in canvas infrastructure",
|
13 |
+
max_tokens=2000,
|
14 |
temperature=0.5,
|
15 |
stop=[" Human:", " AI:"]
|
16 |
)
|