ibcplateformes Claude Opus 4.6 commited on
Commit
7298123
·
1 Parent(s): 7a6bb2b

Fix Gradio 5 compatibility: update gr.update() and let HF manage gradio version

Browse files

- Replace gr.update() with gr.Dropdown() (Gradio 5 API change)
- Remove explicit gradio pin, let sdk_version handle it
- Update spaces>=0.30.0 for Gradio 5 compat

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (2) hide show
  1. app.py +2 -2
  2. requirements.txt +2 -3
app.py CHANGED
@@ -367,7 +367,7 @@ with gr.Blocks(
367
  )
368
 
369
  refresh_btn.click(
370
- fn=lambda: gr.update(choices=get_model_choices()),
371
  outputs=[convert_model],
372
  )
373
 
@@ -425,7 +425,7 @@ with gr.Blocks(
425
  outputs=[models_table],
426
  )
427
  models_refresh_btn.click(
428
- fn=lambda: gr.update(choices=get_model_choices()),
429
  outputs=[models_delete_name],
430
  )
431
 
 
367
  )
368
 
369
  refresh_btn.click(
370
+ fn=lambda: gr.Dropdown(choices=get_model_choices()),
371
  outputs=[convert_model],
372
  )
373
 
 
425
  outputs=[models_table],
426
  )
427
  models_refresh_btn.click(
428
+ fn=lambda: gr.Dropdown(choices=get_model_choices()),
429
  outputs=[models_delete_name],
430
  )
431
 
requirements.txt CHANGED
@@ -1,6 +1,5 @@
1
- # Gradio + HuggingFace
2
- gradio>=5.12.0
3
- spaces
4
  huggingface_hub>=0.23.0
5
 
6
  # PyTorch (ZeroGPU compatible)
 
1
+ # Gradio + HuggingFace (versions managed by HF sdk_version in README.md)
2
+ spaces>=0.30.0
 
3
  huggingface_hub>=0.23.0
4
 
5
  # PyTorch (ZeroGPU compatible)