microsoft / LLaVA-Med

Large Language-and-Vision Assistant for Biomedicine, built towards multimodal GPT-4 level capabilities.
Other
1.55k stars 199 forks source link

the bug in /llava/serve/gradio_patch.py #46

Open pqpq17 opened 9 months ago

pqpq17 commented 9 months ago

when I use the gradio==4.11.0 and run the following command: python -m llava.serve.gradio_web_server --controller http://localhost:10000 --share

comes with following error: NameError: name 'Changeable' is not defined

then I find the error line 17 in gradio_patch.py: class Chatbot(Changeable, Selectable, IOComponent, JSONSerializable):

it seems that Changeable, Selectable, IOComponent, JSONSerializable is from old version of gradio, like 3.11 or 3.xx?

can anyone help me?

jweihe commented 8 months ago

same problem

younghoonNa commented 6 months ago

is there anyone who can solve this problem?

Originally, I was using gradio version 4.11.0 and experienced the same error. I then switched to Gradio version 3.23.0 based on a recommendation I found at this link, and this change finally resolved the issue.

I also followed the installation instructions provided in the requirements file found here: https://github.com/microsoft/LLaVA-Med/blob/main/llava.egg-info/requires.txt

I hope you guys solve it 😄

pqpq17 commented 6 months ago

@younghoonNa thank you! I also change the gradio version to 3.50.0 and it was solved. Hoping this can help others.