Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -170,7 +170,7 @@ class VibeVoiceDemo:
|
|
170 |
# The generated audio is often in speech_outputs or a similar attribute
|
171 |
if hasattr(outputs, 'speech_outputs') and outputs.speech_outputs[0] is not None:
|
172 |
audio_tensor = outputs.speech_outputs[0]
|
173 |
-
audio = audio_tensor.cpu().numpy()
|
174 |
else:
|
175 |
raise gr.Error("❌ Error: No audio was generated by the model. Please try again.")
|
176 |
|
|
|
170 |
# The generated audio is often in speech_outputs or a similar attribute
|
171 |
if hasattr(outputs, 'speech_outputs') and outputs.speech_outputs[0] is not None:
|
172 |
audio_tensor = outputs.speech_outputs[0]
|
173 |
+
audio = audio_tensor.cpu().float().numpy()
|
174 |
else:
|
175 |
raise gr.Error("❌ Error: No audio was generated by the model. Please try again.")
|
176 |
|