-
Notifications
You must be signed in to change notification settings - Fork 709
Create branch if missing in hugginface-cli upload #1857
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
Conversation
The documentation is not available anymore as the PR was closed or merged. |
…com:huggingface/huggingface_hub into 1841-create-branch-if-missing-in-cli-upload
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1857 +/- ##
===========================================
+ Coverage 48.47% 82.46% +33.98%
===========================================
Files 64 64
Lines 7795 7801 +6
===========================================
+ Hits 3779 6433 +2654
+ Misses 4016 1368 -2648 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Wauplin, this looks good to me and makes sense form an API perspective
Thanks for the quick review @LysandreJik! |
API makes sense to me too |
Solves #1841 and #1657 cc @AlpinDale
With this PR, running
huggingface-cli upload ... ... --revision=my-branch
will automatically create the branch if it does not exist yet. I added some tests and adapted the docs.Note:
--create-pr