Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The web demo is unable to run due to the following error: ImportError: cannot import name 'handle_file' from 'gradio_client'. #105

Open
ZhouShichan opened this issue Dec 23, 2024 · 1 comment

Comments

@ZhouShichan
Copy link

After I installed the dependencies in a newly created conda environment, I attempted to run the web demo, but the following error occurred: ImportError: cannot import name 'handle_file' from 'gradio_client'.

This is how I installed the dependencies :

pip install git+https://github.com/huggingface/transformers
cd demo
pip install -r requirements_web_demo.txt

This might be related to the version of gradio_client. However, the currently installed version is the one required by gradio==4.31.3, which is specified in demo/requirements_web_demo.txt. Could you please tell me which version can be used?

@shikilove
Copy link

shikilove commented Dec 31, 2024

pip install gradio==5.9.1
pip install gradio-client==1.5.2

I solved the problem in this way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants