hzrr commited on
Commit
4c7f733
Β·
1 Parent(s): 4149c50
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -71,6 +71,8 @@ character_dict = {
71
  "ηœŸι‚£": 13,
72
  }
73
 
 
 
74
  app = gr.Blocks()
75
  with app:
76
  gr.HTML("""
@@ -89,8 +91,8 @@ with app:
89
  tmp = gr.Markdown("")
90
  with gr.Tabs():
91
  with gr.TabItem("Basic"):
92
- with gr.Row():
93
- model_submit = gr.Button("加载/ι‡θ½½ζ¨‘εž‹", variant="primary")
94
 
95
  with gr.Row():
96
  tts_input1 = gr.TextArea(
@@ -98,7 +100,7 @@ with app:
98
  tts_input2 = gr.Dropdown(choices=[character_dict.keys], type="value",label="选择角色", optional=False)
99
  tts_submit = gr.Button("η”¨ζ–‡ζœ¬εˆζˆ", variant="primary")
100
  tts_output2 = gr.Audio(label="Output")
101
- model_submit.click(load_model, [config_path, pth_path])
102
  tts_submit.click(infer, [character_dict[tts_input2], tts_input1], [tts_output2])
103
  gr.HTML("""
104
  <div style="text-align:center">
 
71
  "ηœŸι‚£": 13,
72
  }
73
 
74
+ load_model(config_path, pth_path)
75
+
76
  app = gr.Blocks()
77
  with app:
78
  gr.HTML("""
 
91
  tmp = gr.Markdown("")
92
  with gr.Tabs():
93
  with gr.TabItem("Basic"):
94
+ # with gr.Row():
95
+ # model_submit = gr.Button("加载/ι‡θ½½ζ¨‘εž‹", variant="primary")
96
 
97
  with gr.Row():
98
  tts_input1 = gr.TextArea(
 
100
  tts_input2 = gr.Dropdown(choices=[character_dict.keys], type="value",label="选择角色", optional=False)
101
  tts_submit = gr.Button("η”¨ζ–‡ζœ¬εˆζˆ", variant="primary")
102
  tts_output2 = gr.Audio(label="Output")
103
+ # model_submit.click(load_model, [config_path, pth_path])
104
  tts_submit.click(infer, [character_dict[tts_input2], tts_input1], [tts_output2])
105
  gr.HTML("""
106
  <div style="text-align:center">