Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,7 +93,7 @@ def respond(message, history):
|
|
| 93 |
if history:
|
| 94 |
messages.extend(history)
|
| 95 |
messages.append({"role": "user", "content": message})
|
| 96 |
-
response = client.chat_completion(
|
| 97 |
return response["choices"][0]["message"]["content"].strip()
|
| 98 |
|
| 99 |
chatBot = gr.ChatInterface(respond, type = "messages", title = "GoGreen", description = "Ask me anything about travel!")
|
|
|
|
| 93 |
if history:
|
| 94 |
messages.extend(history)
|
| 95 |
messages.append({"role": "user", "content": message})
|
| 96 |
+
response = client.chat_completion(messages)
|
| 97 |
return response["choices"][0]["message"]["content"].strip()
|
| 98 |
|
| 99 |
chatBot = gr.ChatInterface(respond, type = "messages", title = "GoGreen", description = "Ask me anything about travel!")
|