Spaces:
Running
Running
move audio upload to left column
Browse files
app.py
CHANGED
|
@@ -938,6 +938,12 @@ def gradio_main():
|
|
| 938 |
elem_classes="status-box",
|
| 939 |
)
|
| 940 |
train_output_file = gr.File(label="Trained LoRA (download)", visible=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 941 |
with gr.Column(scale=2):
|
| 942 |
with gr.Row(elem_classes="compact-row"):
|
| 943 |
train_btn = gr.Button("Train", variant="primary", scale=2)
|
|
@@ -952,12 +958,6 @@ def gradio_main():
|
|
| 952 |
label="Rank (r)", minimum=1, maximum=128,
|
| 953 |
value=32, step=1,
|
| 954 |
)
|
| 955 |
-
train_audio = gr.File(
|
| 956 |
-
label="Training Audio (optional caption .txt)",
|
| 957 |
-
file_count="multiple",
|
| 958 |
-
file_types=["audio", ".txt", ".json"],
|
| 959 |
-
height=120,
|
| 960 |
-
)
|
| 961 |
|
| 962 |
# Button swap on click (separate handler, like rvc-beatrice)
|
| 963 |
# This fires immediately so user sees Cancel even if training
|
|
|
|
| 938 |
elem_classes="status-box",
|
| 939 |
)
|
| 940 |
train_output_file = gr.File(label="Trained LoRA (download)", visible=False)
|
| 941 |
+
train_audio = gr.File(
|
| 942 |
+
label="Training Audio (optional caption .txt)",
|
| 943 |
+
file_count="multiple",
|
| 944 |
+
file_types=["audio", ".txt", ".json"],
|
| 945 |
+
height=120,
|
| 946 |
+
)
|
| 947 |
with gr.Column(scale=2):
|
| 948 |
with gr.Row(elem_classes="compact-row"):
|
| 949 |
train_btn = gr.Button("Train", variant="primary", scale=2)
|
|
|
|
| 958 |
label="Rank (r)", minimum=1, maximum=128,
|
| 959 |
value=32, step=1,
|
| 960 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 961 |
|
| 962 |
# Button swap on click (separate handler, like rvc-beatrice)
|
| 963 |
# This fires immediately so user sees Cancel even if training
|