update apppy
Browse files
app.py
CHANGED
@@ -36,10 +36,10 @@ class GradioApplication:
|
|
36 |
|
37 |
|
38 |
def infer(self, text, lang, duration_rate):
|
39 |
-
if(lang == "
|
40 |
-
return using_viettts(text,duration_rate)
|
41 |
-
else :
|
42 |
return using_tacotron(text)
|
|
|
|
|
43 |
return 1
|
44 |
|
45 |
def run(self):
|
|
|
36 |
|
37 |
|
38 |
def infer(self, text, lang, duration_rate):
|
39 |
+
if(lang == "Tacotron2"):
|
|
|
|
|
40 |
return using_tacotron(text)
|
41 |
+
else :
|
42 |
+
return using_viettts(text,duration_rate)
|
43 |
return 1
|
44 |
|
45 |
def run(self):
|