Update app.py
Browse files
app.py
CHANGED
@@ -269,9 +269,7 @@ with gr.Blocks(title="Hex RVC", theme=gr.themes.Default(primary_hue="red", secon
|
|
269 |
elem_id="model_folder"
|
270 |
)
|
271 |
# Button to refresh the list of folders
|
272 |
-
|
273 |
-
# Action to refresh folder list on button click
|
274 |
-
refresh_button.click(refresh_folders, outputs=MODEL_NAME)
|
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")
|
@@ -284,11 +282,14 @@ with gr.Blocks(title="Hex RVC", theme=gr.themes.Default(primary_hue="red", secon
|
|
284 |
value=None,
|
285 |
)
|
286 |
|
287 |
-
refresh_btn = gr.Button("Refresh Audio List")
|
288 |
|
289 |
-
|
290 |
-
refresh_btn.click(refresh_audio_list, outputs=SOUND_PATH)
|
291 |
|
|
|
|
|
|
|
|
|
|
|
292 |
|
293 |
with gr.Accordion("Conversion Settings"):
|
294 |
with gr.Row():
|
|
|
269 |
elem_id="model_folder"
|
270 |
)
|
271 |
# Button to refresh the list of folders
|
272 |
+
|
|
|
|
|
273 |
with gr.Row():
|
274 |
# = gr.Textbox(label="Model Name", placeholder="Enter model name")
|
275 |
# SOUND_PATH = gr.Textbox(label="Audio Path (Optional)", placeholder="Leave blank to upload audio")
|
|
|
282 |
value=None,
|
283 |
)
|
284 |
|
|
|
285 |
|
286 |
+
|
|
|
287 |
|
288 |
+
refresh_btn = gr.Button("Refresh Audio")
|
289 |
+
|
290 |
+
refresh_btn.click(refresh_audio_list, outputs=SOUND_PATH)
|
291 |
+
|
292 |
+
refresh_btn.click(refresh_folders, outputs=MODEL_NAME)
|
293 |
|
294 |
with gr.Accordion("Conversion Settings"):
|
295 |
with gr.Row():
|