Skip to content

Quickfix: Pin Gradio <6.0 to fix GUI Audio TypeErrors (#862)#869

Open
LimitlessGreen wants to merge 1 commit intobirdnet-team:mainfrom
LimitlessGreen:LimitlessGreen-gradio-quickfix
Open

Quickfix: Pin Gradio <6.0 to fix GUI Audio TypeErrors (#862)#869
LimitlessGreen wants to merge 1 commit intobirdnet-team:mainfrom
LimitlessGreen:LimitlessGreen-gradio-quickfix

Conversation

@LimitlessGreen
Copy link
Contributor

Quickfix: Pin Gradio <6.0 to fix GUI Audio TypeErrors (#862)

Problem: Gradio >=6.0 crashes GUI:
TypeError: Audio.init() got unexpected keyword 'show_download_button'/'buttons'

See:

segment_audio = gr.Audio(autoplay=True, type="numpy", show_download_button=True, show_label=False, editable=False, visible=False)

Fix: Update pyproject.toml:

gui = [
  ...
- "gradio>=5.46",
+ "gradio>=5.46, <6.0",
  ...
]

Test: pip install -e '.[gui]' → GUI starts without errors.

Future: Gradio 6 migration needed.

Fixes #862

Copilot AI review requested due to automatic review settings February 13, 2026 17:41
Copy link
Contributor

Copilot AI left a comment

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 is a quickfix that pins the Gradio dependency to versions below 6.0 to prevent GUI crashes caused by breaking API changes in Gradio 6.0. The issue #862 reported that Gradio 6.0 removed the show_download_button parameter from the Audio component, causing TypeError exceptions when launching the BirdNET-Analyzer GUI.

Changes:

  • Add upper bound constraint to Gradio dependency (< 6.0) while maintaining minimum version requirement (>= 5.46)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

TypeError: Audio.__init__() got an unexpected keyword argument 'show_download_button'

1 participant