Skip to content

fix: remove deprecated show_api for Gradio 6.x compatibility#280

Open
lichuanqi wants to merge 2 commits intoZeyi-Lin:masterfrom
lichuanqi:fix/gradio-6x-remove-show_api
Open

fix: remove deprecated show_api for Gradio 6.x compatibility#280
lichuanqi wants to merge 2 commits intoZeyi-Lin:masterfrom
lichuanqi:fix/gradio-6x-remove-show_api

Conversation

@lichuanqi
Copy link
Copy Markdown

Issue

Gradio 6.x moved the show_api parameter from the launch() method. This change removes the deprecated parameter to ensure compatibility with Gradio 6.x while maintaining backward compatibility. This causes a startup error:

TypeError Blocks.launch() got an unexpected keyword argument show_api

fix

Removed the deprecated show_api=False argument from app.launch() in app.py

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the show_api parameter from a function call in app.py. The reviewer suggests re-adding a trailing comma to the root_path argument to align with PEP 8 style guidelines and ensure cleaner version control diffs in the future.

Comment thread app.py Outdated
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.

1 participant