sims2k commited on
Commit
fa05ad3
1 Parent(s): ba2824d

Update utils.py

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.update(value=audio_unique_filename, autoplay=True))
391
  else:
392
+ return (history, gr.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