yasserrmd commited on
Commit
28884a1
·
verified ·
1 Parent(s): e95ccf0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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