Spaces:
Sleeping
Sleeping
added none chk
Browse files
app.py
CHANGED
|
@@ -24,8 +24,10 @@ def respond(message, history):
|
|
| 24 |
):
|
| 25 |
|
| 26 |
token = message.choices[0].delta.content
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
| 29 |
|
| 30 |
# defining chatbot
|
| 31 |
chatbot = gr.ChatInterface(respond, title = "", description = "")
|
|
|
|
| 24 |
):
|
| 25 |
|
| 26 |
token = message.choices[0].delta.content
|
| 27 |
+
|
| 28 |
+
if token is not None:
|
| 29 |
+
response += token
|
| 30 |
+
yield response
|
| 31 |
|
| 32 |
# defining chatbot
|
| 33 |
chatbot = gr.ChatInterface(respond, title = "", description = "")
|