Update app.py
Browse files
app.py
CHANGED
@@ -258,7 +258,7 @@ with gr.Blocks(title="Hex RVC", theme=gr.themes.Default(primary_hue="red", secon
|
|
258 |
|
259 |
with gr.Tab("Inference"):
|
260 |
MODEL_NAME = gr.Dropdown(
|
261 |
-
label="Select a Model
|
262 |
choices=get_folders(),
|
263 |
interactive=True,
|
264 |
elem_id="model_folder"
|
@@ -266,7 +266,7 @@ with gr.Blocks(title="Hex RVC", theme=gr.themes.Default(primary_hue="red", secon
|
|
266 |
# Button to refresh the list of folders
|
267 |
refresh_button = gr.Button("Refresh Folder List")
|
268 |
# Action to refresh folder list on button click
|
269 |
-
refresh_button.click(refresh_folders, outputs=
|
270 |
with gr.Row():
|
271 |
# = gr.Textbox(label="Model Name", placeholder="Enter model name")
|
272 |
# SOUND_PATH = gr.Textbox(label="Audio Path (Optional)", placeholder="Leave blank to upload audio")
|
|
|
258 |
|
259 |
with gr.Tab("Inference"):
|
260 |
MODEL_NAME = gr.Dropdown(
|
261 |
+
label="Select a Model",
|
262 |
choices=get_folders(),
|
263 |
interactive=True,
|
264 |
elem_id="model_folder"
|
|
|
266 |
# Button to refresh the list of folders
|
267 |
refresh_button = gr.Button("Refresh Folder List")
|
268 |
# Action to refresh folder list on button click
|
269 |
+
refresh_button.click(refresh_folders, outputs=MODEL_NAME)
|
270 |
with gr.Row():
|
271 |
# = gr.Textbox(label="Model Name", placeholder="Enter model name")
|
272 |
# SOUND_PATH = gr.Textbox(label="Audio Path (Optional)", placeholder="Leave blank to upload audio")
|