Skip to content

TypeError: Textbox.__init__() got an unexpected keyword argument 'show_copy_button'#1

Open
wpacademy wants to merge 1 commit intodasjoms:masterfrom
wpacademy:master
Open

TypeError: Textbox.__init__() got an unexpected keyword argument 'show_copy_button'#1
wpacademy wants to merge 1 commit intodasjoms:masterfrom
wpacademy:master

Conversation

@wpacademy
Copy link
Copy Markdown

Gradio Fix Walkthrough

I have resolved the TypeError preventing the application from starting.

Changes

  • Removed the deprecated show_copy_button=True argument from all gr.Textbox initializations in ChatterboxToolkitUI.py
  • This argument was removed in recent Gradio versions (likely 6.0+), causing the crash. Removed theme=gr.themes.Default() from gr.Blocks() to fix a UserWarning. The default theme is applied automatically, and passing it to Blocks is deprecated in favor of launch(), but it's not strictly needed here since it's the default.

Gradio Fix Walkthrough
I have resolved the TypeError preventing the application from starting.

Changes
Removed the deprecated show_copy_button=True argument from all gr.Textbox initializations in 
ChatterboxToolkitUI.py
. This argument was removed in recent Gradio versions (likely 6.0+), causing the crash.
Removed theme=gr.themes.Default() from gr.Blocks() to fix a UserWarning. The default theme is applied automatically, and passing it to Blocks is deprecated in favor of launch(), but it's not strictly needed here since it's the default.
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