Spaces:
Sleeping
Sleeping
fix error to updated chatbox
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ def respond(message, history):
|
|
| 27 |
max_tokens = 100
|
| 28 |
)
|
| 29 |
|
| 30 |
-
return
|
| 31 |
|
| 32 |
|
| 33 |
chatbot = gr.ChatInterface(respond)
|
|
|
|
| 27 |
max_tokens = 100
|
| 28 |
)
|
| 29 |
|
| 30 |
+
return response.choices[0].message.content.strip()
|
| 31 |
|
| 32 |
|
| 33 |
chatbot = gr.ChatInterface(respond)
|