Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ def generate(audio_text, history, temperature=None, max_new_tokens=2048, top_p=0
|
|
84 |
return response, audio_file
|
85 |
|
86 |
def text_to_speech(text):
|
87 |
-
tts = gTTS(text=text, lang='
|
88 |
audio_fp = io.BytesIO()
|
89 |
tts.write_to_fp(audio_fp)
|
90 |
audio_fp.seek(0)
|
|
|
84 |
return response, audio_file
|
85 |
|
86 |
def text_to_speech(text):
|
87 |
+
tts = gTTS(text=text, lang='en')
|
88 |
audio_fp = io.BytesIO()
|
89 |
tts.write_to_fp(audio_fp)
|
90 |
audio_fp.seek(0)
|