Spaces:
Build error
Build error
...
Browse files
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 |
-
|
93 |
-
|
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">
|