Update app.py
Browse files
app.py
CHANGED
@@ -463,7 +463,7 @@ with gr.Blocks(title="Hex RVC") as app:
|
|
463 |
#output_audio = gr.Audio(type="filepath", label="Exported Audio")
|
464 |
language = gr.Dropdown(choices=list(language_dict.keys()), label="Choose the Voice Model")
|
465 |
tts_convert = gr.Button("Convert")
|
466 |
-
tts_convert.click(fn=text_to_speech_edge, inputs=[input_text, language],
|
467 |
with gr.Accordion("Advanced Settings", open=False):
|
468 |
SPLIT_INFER = gr.Checkbox(label="Enable Split Inference", value=False)
|
469 |
MIN_SILENCE = gr.Number(label="Min Silence (ms)", value=500)
|
@@ -491,7 +491,7 @@ with gr.Blocks(title="Hex RVC") as app:
|
|
491 |
url = gr.Textbox(label="Your model URL")
|
492 |
dirname = gr.Textbox(label="Your Model name")
|
493 |
button_model = gr.Button("Download model")
|
494 |
-
button_model.click(fn=download_online_model, inputs=[url, dirname],
|
495 |
with gr.Tab("Audio Separation"):
|
496 |
with gr.Row():
|
497 |
input_audio = gr.Audio(source="upload", type="filepath", label="Upload Audio File")
|
|
|
463 |
#output_audio = gr.Audio(type="filepath", label="Exported Audio")
|
464 |
language = gr.Dropdown(choices=list(language_dict.keys()), label="Choose the Voice Model")
|
465 |
tts_convert = gr.Button("Convert")
|
466 |
+
tts_convert.click(fn=text_to_speech_edge, inputs=[input_text, language], outputs=[upload_audio])
|
467 |
with gr.Accordion("Advanced Settings", open=False):
|
468 |
SPLIT_INFER = gr.Checkbox(label="Enable Split Inference", value=False)
|
469 |
MIN_SILENCE = gr.Number(label="Min Silence (ms)", value=500)
|
|
|
491 |
url = gr.Textbox(label="Your model URL")
|
492 |
dirname = gr.Textbox(label="Your Model name")
|
493 |
button_model = gr.Button("Download model")
|
494 |
+
button_model.click(fn=download_online_model, inputs=[url, dirname], outputs=[dirname])
|
495 |
with gr.Tab("Audio Separation"):
|
496 |
with gr.Row():
|
497 |
input_audio = gr.Audio(source="upload", type="filepath", label="Upload Audio File")
|