Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,10 @@ Join us : 🌟TeamTonic🌟 is always making cool demos! Join our active builder
|
|
20 |
@spaces.GPU
|
21 |
def whisper_speech_demo(text, lang, speaker_audio, mix_lang, mix_text):
|
22 |
pipe = Pipeline()
|
23 |
-
speaker_url =
|
|
|
|
|
|
|
24 |
|
25 |
if mix_lang and mix_text:
|
26 |
mixed_langs = lang.split(',') + mix_lang.split(',')
|
|
|
20 |
@spaces.GPU
|
21 |
def whisper_speech_demo(text, lang, speaker_audio, mix_lang, mix_text):
|
22 |
pipe = Pipeline()
|
23 |
+
speaker_url = None
|
24 |
+
|
25 |
+
if speaker_audio is not None:
|
26 |
+
speaker_url = speaker_audio
|
27 |
|
28 |
if mix_lang and mix_text:
|
29 |
mixed_langs = lang.split(',') + mix_lang.split(',')
|