Spaces:
Build error
Build error
Update Gradio_UI.py
Browse files- Gradio_UI.py +1 -1
Gradio_UI.py
CHANGED
|
@@ -201,7 +201,7 @@ def stream_to_gradio(
|
|
| 201 |
print("DEBUG audio_np type:", type(audio_np), "shape:", audio_np.shape)
|
| 202 |
yield gr.ChatMessage(
|
| 203 |
role="assistant",
|
| 204 |
-
content={"
|
| 205 |
)
|
| 206 |
print("DEBUG AgentAudio attributes:", vars(final_answer))
|
| 207 |
|
|
|
|
| 201 |
print("DEBUG audio_np type:", type(audio_np), "shape:", audio_np.shape)
|
| 202 |
yield gr.ChatMessage(
|
| 203 |
role="assistant",
|
| 204 |
+
content={"path": final_answer.to_string(), "mime_type": "audio/mpeg"},
|
| 205 |
)
|
| 206 |
print("DEBUG AgentAudio attributes:", vars(final_answer))
|
| 207 |
|