Ahsen Khaliq
commited on
Commit
·
9531bc2
1
Parent(s):
6d5299a
Update app.py
Browse files
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(text.strip())
|
23 |
else:
|
24 |
+
audio = io2(text.strip())
|
25 |
return audio
|
26 |
|
27 |
gr.Interface(
|