Tonic commited on
Commit
5123302
1 Parent(s): 0416a60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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 = speaker_audio if speaker_audio else None
 
 
 
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(',')