microsoft/LLaVA-Med

the bug in /llava/serve/gradio_patch.py

pqpq17 opened this issue · 3 comments

pqpq17 commented

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?

same problem

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 😄

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