Ahsen Khaliq commited on
Commit
88db225
1 Parent(s): 86042b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -17
app.py CHANGED
@@ -10,23 +10,7 @@ examples = [
10
  ["Hello this is a test run"]
11
  ]
12
 
13
- io1 = gr.Interface.load("huggingface/facebook/fastspeech2-en-200_speaker-cv4")
14
-
15
- io2 = gr.Interface.load("huggingface/facebook/fastspeech2-en-ljspeech")
16
-
17
-
18
-
19
-
20
- def inference(text):
21
- audio = io1(text)
22
- #audio = io2(text.strip())
23
- return audio
24
-
25
- gr.Interface(
26
- inference,
27
- gr.inputs.Textbox(label="Input", lines=10),
28
- gr.outputs.Audio(label="Output"),
29
- examples=examples,
30
  article=article,
31
  title=title,
32
  description=description).launch(enable_queue=True)
 
10
  ["Hello this is a test run"]
11
  ]
12
 
13
+ gr.Interface.load("huggingface/facebook/fastspeech2-en-200_speaker-cv4", examples=examples,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  article=article,
15
  title=title,
16
  description=description).launch(enable_queue=True)