Upgrade gradio#937
Open
Josef-Haupt wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR upgrades the GUI dependency stack by pinning Gradio to a newer major version and adjusts several GUI component configurations to match updated Gradio APIs and behavior in the BirdNET-Analyzer GUI.
Changes:
- Bump GUI optional dependency from
gradio==5.46.1togradio==6.19.0. - Update Textbox/TextArea copy controls and Audio download controls to use newer button configuration patterns.
- Adjust GUI wiring/layout (species list outputs) and move CSS/JS injection to the
launch()call.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
pyproject.toml |
Pins the GUI extra to gradio==6.19.0. |
birdnet_analyzer/gui/utils.py |
Updates copy button config, fixes species list outputs, and refactors Gradio app launch/CSS/JS setup. |
birdnet_analyzer/gui/single_file.py |
Updates the single-file tab’s audio component button configuration. |
birdnet_analyzer/gui/review.py |
Updates the review tab’s audio component button configuration. |
birdnet_analyzer/gui/embeddings.py |
Updates copy button config on a path textbox. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
672
to
676
| Column update, | ||
| ] | ||
| """ | ||
| if choice == _CUSTOM_SPECIES: | ||
| return [ |
| _URL = demo.queue(api_open=False).launch( | ||
| css=css_file.read(), | ||
| js=js_file.read(), | ||
| theme=gr.themes.Default(), |
| quiet=True, | ||
| enable_monitoring=False, | ||
| allowed_paths=_get_win_drives() if sys.platform == "win32" else ["/"], | ||
| footer_links=[], |
| autoplay=True, | ||
| type="numpy", | ||
| # buttons=["download"], # gradio>=6 | ||
| buttons=["download"], |
| type="filepath", | ||
| sources=[], | ||
| # buttons=["download"], # gradio>=6 | ||
| buttons=["download"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.