Sambhavnoobcoder commited on
Commit
1c30e88
·
1 Parent(s): b740473

observe not an attribute of input

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -17,7 +17,8 @@ def main():
17
  logging.basicConfig(level=logging.INFO)
18
  repo_files = list_repo_files(repo_id="balacoon/tts")
19
  model_files = [x for x in repo_files if x.endswith("_cpu.addon")]
20
- model_name = gr.inputs.Dropdown(label="Model", choices=model_files)
 
21
  speaker = gr.inputs.Dropdown(label="Speaker", choices=[])
22
 
23
  def set_model(model_name_str):
 
17
  logging.basicConfig(level=logging.INFO)
18
  repo_files = list_repo_files(repo_id="balacoon/tts")
19
  model_files = [x for x in repo_files if x.endswith("_cpu.addon")]
20
+ model_name_dropdown = gr.inputs.Dropdown(label="Model", choices=model_files)
21
+ model_name = gr.inputs.Input(input_type="dropdown", source=model_name_dropdown)
22
  speaker = gr.inputs.Dropdown(label="Speaker", choices=[])
23
 
24
  def set_model(model_name_str):