FastChat
FastChat copied to clipboard
Error: Type object 'Dropdown' has no attribute 'update' in "qa_browser.py"
trafficstars
Hi FastChat team,
I ran into this error while starting the qa broswer. It seems that the Dropdown::update has been removed (https://github.com/gradio-app/gradio/issues/6862), and we need update the qa_browser.py. Or did I miss something? Thanks!
File "/home/<user>/FastChat/fastchat/llm_judge/qa_browser.py", line 356, in load_demo
dropdown_update = gr.Dropdown.update(value=list(category_selector_map.keys())[0])
AttributeError: type object 'Dropdown' has no attribute 'update'
Li
BTW, it seems that it can be easily fixed with
def load_demo():
- dropdown_update = gr.Dropdown.update(value=list(category_selector_map.keys())[0])
+ dropdown_update = gr.Dropdown(
+ value=list(category_selector_map.keys())[0], interactive=True
+ )
return dropdown_update, dropdown_update
Thank you, that works. Mind opening PR?