Hev832 commited on
Commit
e01df81
·
verified ·
1 Parent(s): 488707a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
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
- refresh_button = gr.Button("Refresh Folder List")
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
- # Set up button click to refresh audio list
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():