Update app.py
Browse files
app.py
CHANGED
@@ -275,7 +275,7 @@ with gr.Blocks(title="Hex RVC", theme=gr.themes.Default(primary_hue="red", secon
|
|
275 |
with gr.Row():
|
276 |
# = gr.Textbox(label="Model Name", placeholder="Enter model name")
|
277 |
# SOUND_PATH = gr.Textbox(label="Audio Path (Optional)", placeholder="Leave blank to upload audio")
|
278 |
-
upload_audio = gr.Audio(label="Upload Audio", type='filepath')
|
279 |
|
280 |
SOUND_PATH = gr.Dropdown(
|
281 |
choices=load_audio_files(),
|
@@ -321,10 +321,11 @@ with gr.Blocks(title="Hex RVC", theme=gr.themes.Default(primary_hue="red", secon
|
|
321 |
TIMBRE = gr.Number(label="Timbre", value=1)
|
322 |
F0_AUTOTUNE = gr.Checkbox(label="Enable F0 Autotune", value=False)
|
323 |
OUTPUT_FORMAT = gr.Dropdown(choices=["wav", "flac", "mp3"], label="Output Format", value="wav")
|
324 |
-
|
325 |
-
run_button = gr.Button("Run Inference")
|
326 |
output_audio = gr.Audio(label="Generated Audio", type='filepath')
|
327 |
|
|
|
|
|
328 |
#ref_btn.click(update_models_list, None, outputs=MODEL_NAME)
|
329 |
run_button.click(
|
330 |
process_audio,
|
|
|
275 |
with gr.Row():
|
276 |
# = gr.Textbox(label="Model Name", placeholder="Enter model name")
|
277 |
# SOUND_PATH = gr.Textbox(label="Audio Path (Optional)", placeholder="Leave blank to upload audio")
|
278 |
+
upload_audio = gr.Audio(label="Upload Audio", type='filepath', visible=False)
|
279 |
|
280 |
SOUND_PATH = gr.Dropdown(
|
281 |
choices=load_audio_files(),
|
|
|
321 |
TIMBRE = gr.Number(label="Timbre", value=1)
|
322 |
F0_AUTOTUNE = gr.Checkbox(label="Enable F0 Autotune", value=False)
|
323 |
OUTPUT_FORMAT = gr.Dropdown(choices=["wav", "flac", "mp3"], label="Output Format", value="wav")
|
324 |
+
|
|
|
325 |
output_audio = gr.Audio(label="Generated Audio", type='filepath')
|
326 |
|
327 |
+
run_button = gr.Button("Convert")
|
328 |
+
|
329 |
#ref_btn.click(update_models_list, None, outputs=MODEL_NAME)
|
330 |
run_button.click(
|
331 |
process_audio,
|