Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,9 @@ with open("Dropsheets.txt", "r") as f:
|
|
12 |
def generate_text(prompt):
|
13 |
response = openai.Completion.create(
|
14 |
engine="text-davinci-002",
|
15 |
-
temperature=0
|
|
|
|
|
16 |
)
|
17 |
return response.choices[0].text.strip()
|
18 |
|
|
|
12 |
def generate_text(prompt):
|
13 |
response = openai.Completion.create(
|
14 |
engine="text-davinci-002",
|
15 |
+
temperature=0,
|
16 |
+
max_tokens=1024,
|
17 |
+
prompt=prompt
|
18 |
)
|
19 |
return response.choices[0].text.strip()
|
20 |
|