Ahsen Khaliq commited on
Commit
5c0f476
·
1 Parent(s): c1d7d8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,9 +19,9 @@ io2 = gr.Interface.load("huggingface/facebook/fastspeech2-en-ljspeech")
19
 
20
  def inference(text, model):
21
  if model == "fastspeech2-en-200_speaker-cv4":
22
- audio = io1(text)
23
  else:
24
- audio = io2(text)
25
  return audio
26
 
27
  gr.Interface(
 
19
 
20
  def inference(text, model):
21
  if model == "fastspeech2-en-200_speaker-cv4":
22
+ audio = io1(str(text))
23
  else:
24
+ audio = io2(str(text))
25
  return audio
26
 
27
  gr.Interface(