Spaces:
Running
Running
Update Gradio_UI.py
Browse files- Gradio_UI.py +1 -0
Gradio_UI.py
CHANGED
@@ -198,6 +198,7 @@ def stream_to_gradio(
|
|
198 |
audio_bytes = final_answer.value
|
199 |
# Convert MP3 bytes to a numpy array using our helper function
|
200 |
audio_np = mp3_bytes_to_numpy(audio_bytes)
|
|
|
201 |
yield gr.ChatMessage(
|
202 |
role="assistant",
|
203 |
content={"data": audio_np, "mime_type": "audio/mpeg"},
|
|
|
198 |
audio_bytes = final_answer.value
|
199 |
# Convert MP3 bytes to a numpy array using our helper function
|
200 |
audio_np = mp3_bytes_to_numpy(audio_bytes)
|
201 |
+
print("DEBUG audio_np type:", type(audio_np), "shape:", audio_np.shape)
|
202 |
yield gr.ChatMessage(
|
203 |
role="assistant",
|
204 |
content={"data": audio_np, "mime_type": "audio/mpeg"},
|