Eniola Alese commited on
Commit
614b0d8
1 Parent(s): d272ebd

update app

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -387,9 +387,9 @@ def generate_speech_for_sentence(history, chatbot_voice, sentence, xtts_model, x
387
  f.setframerate(24000)
388
  f.writeframes(wav_bytestream)
389
 
390
- return (history , gr.Audio.update(value=audio_unique_filename, autoplay=True))
391
  else:
392
- return (history , gr.Audio.update(value=wav_bytestream, autoplay=True))
393
  except RuntimeError as e:
394
  if "device-side assert" in str(e):
395
  # cannot do anything on cuda device side error, need tor estart
 
387
  f.setframerate(24000)
388
  f.writeframes(wav_bytestream)
389
 
390
+ return (history , gr.Audio(value=audio_unique_filename, autoplay=True))
391
  else:
392
+ return (history , gr.Audio(value=wav_bytestream, autoplay=True))
393
  except RuntimeError as e:
394
  if "device-side assert" in str(e):
395
  # cannot do anything on cuda device side error, need tor estart