Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def chat_with_buddy(history, user_message):
|
|
23 |
messages=messages
|
24 |
)
|
25 |
# Extract the response content
|
26 |
-
reply = response.choices[0].message
|
27 |
|
28 |
|
29 |
# Update chat history with the new user message and assistant response
|
|
|
23 |
messages=messages
|
24 |
)
|
25 |
# Extract the response content
|
26 |
+
reply = response.choices[0].message.content
|
27 |
|
28 |
|
29 |
# Update chat history with the new user message and assistant response
|