Spaces:
Running
on
T4
Running
on
T4
gorkemgoknar
commited on
Commit
•
78b68ae
1
Parent(s):
68a7d7f
fix ordering of tts_to_file
Browse files
app.py
CHANGED
@@ -148,8 +148,8 @@ def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, voice_clea
|
|
148 |
tts.tts_to_file(
|
149 |
text=prompt,
|
150 |
file_path="output.wav",
|
151 |
-
speaker_wav=speaker_wav,
|
152 |
language=language,
|
|
|
153 |
)
|
154 |
except RuntimeError as e :
|
155 |
if "device-side assert" in str(e):
|
|
|
148 |
tts.tts_to_file(
|
149 |
text=prompt,
|
150 |
file_path="output.wav",
|
|
|
151 |
language=language,
|
152 |
+
speaker_wav=speaker_wav,
|
153 |
)
|
154 |
except RuntimeError as e :
|
155 |
if "device-side assert" in str(e):
|