Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def respond(message, history):
|
|
| 16 |
max_tokens = 100
|
| 17 |
)
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
chatbot = gr.ChatInterface(respond)
|
| 22 |
chatbot.launch()
|
|
|
|
| 16 |
max_tokens = 100
|
| 17 |
)
|
| 18 |
|
| 19 |
+
return response.choices[0].message.content.strip()
|
| 20 |
|
| 21 |
chatbot = gr.ChatInterface(respond)
|
| 22 |
chatbot.launch()
|