Spaces:
Runtime error
Runtime error
bhaskartripathi
commited on
Commit
•
ed3b881
1
Parent(s):
911d8f6
Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ def generate_text(openAI_key,prompt, engine="text-davinci-003"):
|
|
102 |
completions = openai.Completion.create(
|
103 |
engine=engine,
|
104 |
prompt=prompt,
|
105 |
-
max_tokens=
|
106 |
n=1,
|
107 |
stop=None,
|
108 |
temperature=0.7,
|
|
|
102 |
completions = openai.Completion.create(
|
103 |
engine=engine,
|
104 |
prompt=prompt,
|
105 |
+
max_tokens=512,
|
106 |
n=1,
|
107 |
stop=None,
|
108 |
temperature=0.7,
|