Spaces:
Sleeping
Sleeping
ww commited on
Commit ·
7eed2f8
1
Parent(s): a3e591d
tabn
Browse files
app.py
CHANGED
|
@@ -36,10 +36,10 @@ def respond(
|
|
| 36 |
temperature=temperature,
|
| 37 |
top_p=top_p,
|
| 38 |
):
|
| 39 |
-
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
|
| 44 |
"""
|
| 45 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
|
|
|
| 36 |
temperature=temperature,
|
| 37 |
top_p=top_p,
|
| 38 |
):
|
| 39 |
+
token = message.choices[0].delta.content
|
| 40 |
|
| 41 |
+
response += token
|
| 42 |
+
yield response
|
| 43 |
|
| 44 |
"""
|
| 45 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|