Skip to content

Upgrade gradio#937

Open
Josef-Haupt wants to merge 2 commits into
mainfrom
upgrade-gradio
Open

Upgrade gradio#937
Josef-Haupt wants to merge 2 commits into
mainfrom
upgrade-gradio

Conversation

@Josef-Haupt

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 2, 2026 14:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.1 to gradio==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"],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Gradio dependency (5.46.1 to >=6.16.0) due to security vulnerabilities

2 participants