Spaces:
Build error
Build error
Commit ·
21541b4
1
Parent(s): ffb4690
Fix: use Gradio 5.x, simplify State/CheckboxGroup for compat
Browse files- README.md +1 -1
- app.py +1 -8
- requirements.txt +1 -2
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🎵
|
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
python_version: 3.11.0
|
|
|
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.12.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
python_version: 3.11.0
|
app.py
CHANGED
|
@@ -348,7 +348,7 @@ def build_ui():
|
|
| 348 |
|
| 349 |
style_checkboxes = gr.CheckboxGroup(
|
| 350 |
label="Embellishment Styles",
|
| 351 |
-
choices=
|
| 352 |
)
|
| 353 |
|
| 354 |
apply_btn = gr.Button("Apply Embellishments", variant="primary")
|
|
@@ -366,13 +366,6 @@ def build_ui():
|
|
| 366 |
outputs=[stem_dropdown],
|
| 367 |
)
|
| 368 |
|
| 369 |
-
# Also refresh when tab becomes visible
|
| 370 |
-
pipeline_state.change(
|
| 371 |
-
fn=get_available_stems,
|
| 372 |
-
inputs=[pipeline_state],
|
| 373 |
-
outputs=[stem_dropdown],
|
| 374 |
-
)
|
| 375 |
-
|
| 376 |
apply_btn.click(
|
| 377 |
fn=apply_embellishments,
|
| 378 |
inputs=[pipeline_state, stem_dropdown, style_checkboxes],
|
|
|
|
| 348 |
|
| 349 |
style_checkboxes = gr.CheckboxGroup(
|
| 350 |
label="Embellishment Styles",
|
| 351 |
+
choices=list_styles(),
|
| 352 |
)
|
| 353 |
|
| 354 |
apply_btn = gr.Button("Apply Embellishments", variant="primary")
|
|
|
|
| 366 |
outputs=[stem_dropdown],
|
| 367 |
)
|
| 368 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 369 |
apply_btn.click(
|
| 370 |
fn=apply_embellishments,
|
| 371 |
inputs=[pipeline_state, stem_dropdown, style_checkboxes],
|
requirements.txt
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
-
gradio=
|
| 2 |
-
huggingface_hub<0.27.0
|
| 3 |
spaces
|
| 4 |
demucs>=4.0.0
|
| 5 |
torch>=2.1.0
|
|
|
|
| 1 |
+
gradio>=5.0.0,<6.0.0
|
|
|
|
| 2 |
spaces
|
| 3 |
demucs>=4.0.0
|
| 4 |
torch>=2.1.0
|