Spaces:
Sleeping
Sleeping
John Langley
commited on
Commit
•
3c8e6fc
1
Parent(s):
052da48
change to cpu
Browse files
app.py
CHANGED
@@ -175,8 +175,8 @@ with gr.Blocks(title="Voice chat with LLM") as demo:
|
|
175 |
# generate speech by cloning a voice using default setting
|
176 |
generated_speech = generate_speech_for_sentence(chatbot_history, chatbot_voice, sentence, xtts_model, None, return_as_byte=True)
|
177 |
if generated_speech is not None:
|
178 |
-
_, audio_dict = generated_speech
|
179 |
-
yield (sentence, chatbot_history,
|
180 |
#yield (sentence, chatbot_history, audio_dict["value"])
|
181 |
|
182 |
if initial_greeting:
|
|
|
175 |
# generate speech by cloning a voice using default setting
|
176 |
generated_speech = generate_speech_for_sentence(chatbot_history, chatbot_voice, sentence, xtts_model, None, return_as_byte=True)
|
177 |
if generated_speech is not None:
|
178 |
+
#_, audio_dict = generated_speech
|
179 |
+
yield (sentence, chatbot_history, generated_speech)
|
180 |
#yield (sentence, chatbot_history, audio_dict["value"])
|
181 |
|
182 |
if initial_greeting:
|