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

ImportError: cannot import name 'CommitOperationAdd' from 'huggingface_hub' #16

Open
zhenghaolun opened this issue May 29, 2024 · 2 comments

Comments

@zhenghaolun
Copy link

The ImportError happened when I wanted to run the gradio_demo.py, and I tried to upgrade the huggingface_hub and transformers after the Error, but it doesn't work.

@vidit98
Copy link
Collaborator

vidit98 commented May 30, 2024

Hi, can you please paste the full error along with huggingface_hub and transformers version?

@zhenghaolun
Copy link
Author

Hi, yes of course,
ImportError: cannot import name 'CommitOperationAdd' from 'huggingface_hub' (/home/asus/anaconda3/envs/pair-diff/lib/python3.8/site-packages/huggingface_hub/init.py)
transformers-4.41.2
Name: huggingface-hub, Version: 0.23.2

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