Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def respond(message, history):
|
|
| 15 |
messages,
|
| 16 |
max_tokens=100
|
| 17 |
)
|
| 18 |
-
return response ['choices'][0]['message']['
|
| 19 |
|
| 20 |
|
| 21 |
chatbot = gr.ChatInterface(respond, type="messages", title=("friendly, chatbot")) #chatbot UI - conversation history and user input
|
|
|
|
| 15 |
messages,
|
| 16 |
max_tokens=100
|
| 17 |
)
|
| 18 |
+
return response ['choices'][0]['message']['content'].strip()
|
| 19 |
|
| 20 |
|
| 21 |
chatbot = gr.ChatInterface(respond, type="messages", title=("friendly, chatbot")) #chatbot UI - conversation history and user input
|