Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def generate(audio_text, history, temperature=None, max_new_tokens=512, top_p=0.
|
|
78 |
return response, audio_file
|
79 |
|
80 |
def text_to_speech(text, speed=1.3):
|
81 |
-
tts = gTTS(text=text, lang='es
|
82 |
audio_fp = io.BytesIO()
|
83 |
tts.write_to_fp(audio_fp)
|
84 |
audio_fp.seek(0)
|
|
|
78 |
return response, audio_file
|
79 |
|
80 |
def text_to_speech(text, speed=1.3):
|
81 |
+
tts = gTTS(text=text, lang='es')
|
82 |
audio_fp = io.BytesIO()
|
83 |
tts.write_to_fp(audio_fp)
|
84 |
audio_fp.seek(0)
|