Ahsen Khaliq commited on
Commit
3d98f11
·
1 Parent(s): 11e2337

Update app.py

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