Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def whisper_speech_demo(text, lang, speaker_audio, mix_lang, mix_text):
|
|
24 |
pipe = Pipeline()
|
25 |
speaker_url = speaker_audio if speaker_audio is not None else None
|
26 |
|
27 |
-
|
28 |
mixed_langs = mix_lang
|
29 |
mixed_texts = mix_text.split(',')
|
30 |
stoks = pipe.t2s.generate(mixed_texts, lang=mixed_langs)
|
|
|
24 |
pipe = Pipeline()
|
25 |
speaker_url = speaker_audio if speaker_audio is not None else None
|
26 |
|
27 |
+
if mix_lang and mix_text:
|
28 |
mixed_langs = mix_lang
|
29 |
mixed_texts = mix_text.split(',')
|
30 |
stoks = pipe.t2s.generate(mixed_texts, lang=mixed_langs)
|