chrisrude / oobabot-plugin

A Discord bot plugin to text-generation-webui, based on oobabot.
https://github.com/chrisrude/oobabot
MIT License
41 stars 11 forks source link

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

Open mrranger opened 10 months ago

mrranger commented 10 months ago

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_extensionsblock │ │ │ │ 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 commented 9 months ago

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 commented 9 months ago

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