Spaces:
Sleeping
Sleeping
Change non-streaming from return value to (also) generator
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ def respond(
|
|
| 50 |
temperature=temperature,
|
| 51 |
top_p=top_p,
|
| 52 |
)
|
| 53 |
-
|
| 54 |
|
| 55 |
"""
|
| 56 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
|
|
|
| 50 |
temperature=temperature,
|
| 51 |
top_p=top_p,
|
| 52 |
)
|
| 53 |
+
yield completion.choices[0].message
|
| 54 |
|
| 55 |
"""
|
| 56 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|