Spaces:
Sleeping
Sleeping
Yielding content instead of message object in non-streaming
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ def respond(
|
|
| 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
|
|
|
|
| 50 |
temperature=temperature,
|
| 51 |
top_p=top_p,
|
| 52 |
)
|
| 53 |
+
yield completion.choices[0].message.content
|
| 54 |
|
| 55 |
"""
|
| 56 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|