Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhmiao committed Jan 23, 2025
1 parent 9215604 commit 4dc5421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/gradio_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def update_ui_elements(det_model):
elif det_model == "MegaDetectorV5":
return gr.Dropdown(choices=["a", "b"], interactive=True, label="Model version", value="a"), gr.update(visible=True)
else:
return gr.Dropdown(choices=["None"], interactive=True, label="Model version", value="None"), gr.update(value="None",visible=False)
return gr.Dropdown(choices=["None"], interactive=True, label="Model version", value="None"), gr.update(value="None", visible=False)

det_drop.change(update_ui_elements, det_drop, [det_version, clf_drop])

Expand Down

0 comments on commit 4dc5421

Please sign in to comment.