Spaces:
Build error
Build error
...
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def load_model(config_path, pth_path):
|
|
41 |
_ = net_g.eval()
|
42 |
_ = utils.load_checkpoint(pth_path, net_g)
|
43 |
|
44 |
-
print("{pth_path}ε θ½½ζε!")
|
45 |
|
46 |
def infer(c_id, text):
|
47 |
stn_tst = get_text(text, hps_ms)
|
@@ -97,7 +97,7 @@ with app:
|
|
97 |
with gr.Row():
|
98 |
tts_input1 = gr.TextArea(
|
99 |
label="θ―·θΎε
₯ζζ¬(δ»
ζ―ζζ₯θ―)", value="δ½ ε₯½,δΈη!")
|
100 |
-
tts_input2 = gr.Dropdown(
|
101 |
tts_submit = gr.Button("η¨ζζ¬εζ", variant="primary")
|
102 |
tts_output2 = gr.Audio(label="Output")
|
103 |
# model_submit.click(load_model, [config_path, pth_path])
|
|
|
41 |
_ = net_g.eval()
|
42 |
_ = utils.load_checkpoint(pth_path, net_g)
|
43 |
|
44 |
+
print(f"{pth_path}ε θ½½ζε!")
|
45 |
|
46 |
def infer(c_id, text):
|
47 |
stn_tst = get_text(text, hps_ms)
|
|
|
97 |
with gr.Row():
|
98 |
tts_input1 = gr.TextArea(
|
99 |
label="θ―·θΎε
₯ζζ¬(δ»
ζ―ζζ₯θ―)", value="δ½ ε₯½,δΈη!")
|
100 |
+
tts_input2 = gr.Dropdown([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])
|