Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -318,11 +318,11 @@ if __name__ == "__main__":
|
|
318 |
#def a1(textbox, char_dropdown, language_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider, symbol_input):
|
319 |
# pass
|
320 |
#btn.click(a1, [textbox, char_dropdown, language_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider, symbol_input], [], api_name="download_audio2")
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
|
327 |
|
328 |
examples = [['haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......', '29:米浴', '日本語', 1, 0.667, 0.8, True],
|
|
|
318 |
#def a1(textbox, char_dropdown, language_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider, symbol_input):
|
319 |
# pass
|
320 |
#btn.click(a1, [textbox, char_dropdown, language_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider, symbol_input], [], api_name="download_audio2")
|
321 |
+
btn.click(infer2, inputs=[textbox, char_dropdown, language_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider, symbol_input],
|
322 |
+
outputs=[text_output], api_name="1")
|
323 |
+
# outputs=[text_output, audio_output, phoneme_output, duration_output], api_name="1")
|
324 |
+
cus_dur_gn_btn.click(infer_from_phoneme_dur, inputs=[duration_output, char_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider],
|
325 |
+
outputs=[phoneme_output, audio_output])#, api_name="2")
|
326 |
|
327 |
|
328 |
examples = [['haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......', '29:米浴', '日本語', 1, 0.667, 0.8, True],
|