Spaces:
Sleeping
Sleeping
Update chatbot.py
Browse files- chatbot.py +1 -1
chatbot.py
CHANGED
|
@@ -24,7 +24,7 @@ def chatbot(input):
|
|
| 24 |
model="gpt-3.5-turbo",
|
| 25 |
messages=chatbot.messages
|
| 26 |
)
|
| 27 |
-
reply = response.choices[0].message
|
| 28 |
chatbot.messages.append({"role": "assistant", "content": reply})
|
| 29 |
|
| 30 |
conversation = ""
|
|
|
|
| 24 |
model="gpt-3.5-turbo",
|
| 25 |
messages=chatbot.messages
|
| 26 |
)
|
| 27 |
+
reply = response.choices[0].message.content
|
| 28 |
chatbot.messages.append({"role": "assistant", "content": reply})
|
| 29 |
|
| 30 |
conversation = ""
|