Spaces:
Runtime error
Runtime error
DmitrMakeev
commited on
Commit
•
26d85ad
1
Parent(s):
0c4b852
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ def openai_chat(prompt, api_key):
|
|
6 |
openai.api_key = api_key
|
7 |
completions = openai.Completion.create(
|
8 |
engine="text-davinci-003",
|
9 |
-
prompt=prompt+"
|
10 |
max_tokens=1024,
|
11 |
temperature=0.5,
|
12 |
stop=[" Human:", " AI:"]
|
|
|
6 |
openai.api_key = api_key
|
7 |
completions = openai.Completion.create(
|
8 |
engine="text-davinci-003",
|
9 |
+
prompt=prompt+"The",
|
10 |
max_tokens=1024,
|
11 |
temperature=0.5,
|
12 |
stop=[" Human:", " AI:"]
|