Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def chat_with_gpt(message, history):
|
|
| 22 |
)
|
| 23 |
|
| 24 |
|
| 25 |
-
return response.choices[0].message
|
| 26 |
|
| 27 |
# Stream the response back to Gradio
|
| 28 |
full_response = ""
|
|
|
|
| 22 |
)
|
| 23 |
|
| 24 |
|
| 25 |
+
return response.choices[0].message.content
|
| 26 |
|
| 27 |
# Stream the response back to Gradio
|
| 28 |
full_response = ""
|