John Langley commited on
Commit
ce8d3a6
1 Parent(s): daa8ad8

change to cpu

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -422,9 +422,9 @@ def generate_speech_for_sentence(history, chatbot_voice, sentence, xtts_model, x
422
  f.setframerate(24000)
423
  f.writeframes(wav_bytestream)
424
 
425
- return (history , gr.Audio.update(value=audio_unique_filename, autoplay=True))
426
  else:
427
- return (history , gr.Audio.update(value=wav_bytestream, autoplay=True))
428
  except RuntimeError as e:
429
  if "device-side assert" in str(e):
430
  # cannot do anything on cuda device side error, need tor estart
 
422
  f.setframerate(24000)
423
  f.writeframes(wav_bytestream)
424
 
425
+ return (history , gr.Audio(value=audio_unique_filename, autoplay=True))
426
  else:
427
+ return (history , gr.Audio(value=wav_bytestream, autoplay=True))
428
  except RuntimeError as e:
429
  if "device-side assert" in str(e):
430
  # cannot do anything on cuda device side error, need tor estart