Update app.py
Browse files
app.py
CHANGED
@@ -56,17 +56,17 @@ def prepare_input():
|
|
56 |
placeholder="Lựa chọn model test - VietTTS và Tacotron 2 + Univnet",
|
57 |
value="Thành phố muốn thí điểm thu thuế bất động sản thứ 2, tự quyết nhiều quyết định đầu tư để thu hút nguồn vốn tư nhân",
|
58 |
label="Text")
|
59 |
-
lang_input = "Tacotron2"
|
60 |
-
duration_rate_input = 0.1
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
|
71 |
# return [text_input, lang_input, duration_rate_input]
|
72 |
return [text_input, lang_input, duration_rate_input]
|
|
|
56 |
placeholder="Lựa chọn model test - VietTTS và Tacotron 2 + Univnet",
|
57 |
value="Thành phố muốn thí điểm thu thuế bất động sản thứ 2, tự quyết nhiều quyết định đầu tư để thu hút nguồn vốn tư nhân",
|
58 |
label="Text")
|
59 |
+
# lang_input = "Tacotron2"
|
60 |
+
# duration_rate_input = 0.1
|
61 |
+
lang_input = gr.Radio(['Tacotron2'],
|
62 |
+
type='value',
|
63 |
+
value="Tacotron2",
|
64 |
+
label="Model select")
|
65 |
+
duration_rate_input = gr.Slider(minimum=0.2,
|
66 |
+
maximum=1,
|
67 |
+
step=0.1,
|
68 |
+
value=1.0,
|
69 |
+
label="Duration (The bigger the value, the slower the speech) - currently not working")
|
70 |
|
71 |
# return [text_input, lang_input, duration_rate_input]
|
72 |
return [text_input, lang_input, duration_rate_input]
|