Update utils.py
Browse files
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.
|
391 |
else:
|
392 |
-
return (history
|
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
|