lm-sys / lm-sys/FastChat

Error: Type object 'Dropdown' has no attribute 'update' in "qa_browser.py"

Open
#3,347 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

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//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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in fastchat/llm_judge/qa_browser.py at line 356, where load_demo calls gr.Dropdown.update, and review the linked Gradio issue for the relevant API change. The work is done when the QA browser starts without this AttributeError and the dropdown still loads its initial category.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.