Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ llm = Llama.from_pretrained(
|
|
45 |
def text_to_speech(text):
|
46 |
with tempfile.NamedTemporaryFile(delete=False, suffix='.wav') as temp_file:
|
47 |
with locker:
|
48 |
-
audio_data = tts.synthesize(text, "92")
|
49 |
temp_file.write(audio_data)
|
50 |
return temp_file.name
|
51 |
|
|
|
45 |
def text_to_speech(text):
|
46 |
with tempfile.NamedTemporaryFile(delete=False, suffix='.wav') as temp_file:
|
47 |
with locker:
|
48 |
+
audio_data = tts.synthesize(text, "92")
|
49 |
temp_file.write(audio_data)
|
50 |
return temp_file.name
|
51 |
|