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

Replace Deprectated Repository with HfApi #463

Closed
1 task done
cochaviz opened this issue Jun 22, 2024 · 0 comments · Fixed by #465
Closed
1 task done

Replace Deprectated Repository with HfApi #463

cochaviz opened this issue Jun 22, 2024 · 0 comments · Fixed by #465
Labels
enhancement New feature or request

Comments

@cochaviz
Copy link

cochaviz commented Jun 22, 2024

🚀 Feature

I got various errors uploading my models to huggingface_hub (didn't include this as a bug report as even the proposed commit that should have fixed my issue worked in my particular context), all related to the Repository object. This class seems to be deprecated.

Motivation

The use of the use of Repository should be replaced by using the HfApi object (https://huggingface.co/docs/huggingface_hub/concepts/git_vs_http).

Pitch

No response

Alternatives

As mentioned before, there should have been a fix in the huggingface_hub repository (this fix is not yet published to pipy: huggingface/huggingface_hub#2320)

Additional context

Already fixed in PR #462 😄

Checklist

  • I have checked that there is no similar issue in the repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant