Spaces:
Runtime error
Runtime error
DmitrMakeev
commited on
Commit
•
9cbe77e
1
Parent(s):
26d85ad
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+"The",
|
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 following is the prompt from teacher working in canvas infrastructure",
|
10 |
max_tokens=1024,
|
11 |
temperature=0.5,
|
12 |
stop=[" Human:", " AI:"]
|