Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text-generation-webui snapshot-2024-01-14 ERROR module 'gradio' has no attribute 'ClearButton' #45

Open
mrranger opened this issue Jan 15, 2024 · 2 comments

Comments

@mrranger
Copy link

07:25:20-999966 INFO Starting Text generation web UI
07:25:21-006964 INFO Loading the extension "gallery"
C:\chat\extensions\gallery\script.py:110: UserWarning: You have unused kwarg parameters in Textbox, please remove them: {'container': False}
filter_box = gr.Textbox(label='', placeholder='Filter', lines=1, max_lines=1, container=False, elem_id='gallery-filter-box')
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ C:\chat\server.py:254 in │
│ │
│ 253 # Launch the web UI │
│ ❱ 254 create_interface() │
│ 255 while True: │
│ │
│ C:\chat\server.py:157 in create_interface │
│ │
│ 156 extensions_module.create_extensions_tabs() # Extensions tabs │
│ ❱ 157 extensions_module.create_extensions_block() # Extensions block │
│ 158 │
│ │
│ C:\chat\modules\extensions.py:200 in create_extensions_block │
│ │
│ 199 extension, _ = row │
│ ❱ 200 extension.ui() │
│ 201 │
│ │
│ C:\chat\extensions\gallery\script.py:111 in ui │
│ │
│ 110 filter_box = gr.Textbox(label='', placeholder='Filter', lines=1, max_lines=1 │
│ ❱ 111 gr.ClearButton(filter_box, value='Clear', elem_classes='refresh-button') │
│ 112 update = gr.Button("Refresh", elem_classes='refresh-button') │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: module 'gradio' has no attribute 'ClearButton'

@dazpants1
Copy link

Hi, just wanted to ask if there was any resolution to this issue as i also have the same error which stops oogabooga from opening.

@dazpants1
Copy link

Ok, just found a solution to this one from another github issue. First uninstall gradio using: "pip uninstall gradio" and then re installing version 3.50 by using : "pip install gradio==3.50" . I hope this helps someone else in future. Thanks to @fadyOne

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

No branches or pull requests

2 participants