tobiccino commited on
Commit
b1b82fa
1 Parent(s): 3c7e1d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
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
- # lang_input = gr.Radio(['VietTTS', 'Tacotron2'],
62
- # type='value',
63
- # value=None,
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) - only for vietTTS")
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]