Spaces:
Sleeping
Sleeping
Commit ·
4ea5b5c
1
Parent(s): 662c1d3
UI: move refresh button out of accordion and fix sync between tabs
Browse files
app.py
CHANGED
|
@@ -185,9 +185,9 @@ with gr.Blocks(title="Voice Clone RVC", theme=gr.themes.Soft()) as app:
|
|
| 185 |
train_status = gr.Textbox(label="Estado")
|
| 186 |
train_file = gr.File(label="Archivo de Referencia")
|
| 187 |
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
|
| 192 |
train_btn.click(
|
| 193 |
fn=train_voice_model,
|
|
@@ -196,7 +196,9 @@ with gr.Blocks(title="Voice Clone RVC", theme=gr.themes.Soft()) as app:
|
|
| 196 |
).then(
|
| 197 |
fn=refresh_models, outputs=[clonacion_models_table]
|
| 198 |
).then(
|
| 199 |
-
fn=lambda: gr.Dropdown(choices=get_model_choices()), outputs=[
|
|
|
|
|
|
|
| 200 |
)
|
| 201 |
|
| 202 |
clonacion_refresh_btn.click(fn=refresh_models, outputs=[clonacion_models_table])
|
|
|
|
| 185 |
train_status = gr.Textbox(label="Estado")
|
| 186 |
train_file = gr.File(label="Archivo de Referencia")
|
| 187 |
|
| 188 |
+
gr.Markdown("### Perfiles guardados")
|
| 189 |
+
clonacion_refresh_btn = gr.Button("🔄 Actualizar lista de perfiles", size="sm")
|
| 190 |
+
clonacion_models_table = gr.HTML(value=refresh_models())
|
| 191 |
|
| 192 |
train_btn.click(
|
| 193 |
fn=train_voice_model,
|
|
|
|
| 196 |
).then(
|
| 197 |
fn=refresh_models, outputs=[clonacion_models_table]
|
| 198 |
).then(
|
| 199 |
+
fn=lambda: gr.Dropdown(choices=get_model_choices()), outputs=[model_sel]
|
| 200 |
+
).then(
|
| 201 |
+
fn=lambda: gr.Dropdown(choices=get_model_choices()), outputs=[models_delete_name]
|
| 202 |
)
|
| 203 |
|
| 204 |
clonacion_refresh_btn.click(fn=refresh_models, outputs=[clonacion_models_table])
|