Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ with gr.Blocks() as demo:
|
|
16 |
response = openai.Completion.create(
|
17 |
engine="text-davinci-002",
|
18 |
prompt=chat_input,
|
19 |
-
max_tokens=
|
20 |
).choices[0].text.strip()
|
21 |
|
22 |
chat_history.value.append(
|
|
|
16 |
response = openai.Completion.create(
|
17 |
engine="text-davinci-002",
|
18 |
prompt=chat_input,
|
19 |
+
max_tokens=50 # Adjust this for response length
|
20 |
).choices[0].text.strip()
|
21 |
|
22 |
chat_history.value.append(
|