Update app.py
Browse files
app.py
CHANGED
|
@@ -37,10 +37,13 @@ def respond(
|
|
| 37 |
top_p=top_p,
|
| 38 |
):
|
| 39 |
token = message.choices[0].delta.content
|
| 40 |
-
|
| 41 |
-
|
| 42 |
yield response
|
| 43 |
|
|
|
|
|
|
|
|
|
|
| 44 |
"""
|
| 45 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 46 |
"""
|
|
|
|
| 37 |
top_p=top_p,
|
| 38 |
):
|
| 39 |
token = message.choices[0].delta.content
|
| 40 |
+
if token is not None:
|
| 41 |
+
response += token
|
| 42 |
yield response
|
| 43 |
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
|
| 47 |
"""
|
| 48 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 49 |
"""
|