Spaces:
Runtime error
Runtime error
John Langley
commited on
Commit
•
ce8d3a6
1
Parent(s):
daa8ad8
change to cpu
Browse files
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
|
426 |
else:
|
427 |
-
return (history , gr.Audio
|
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
|