Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix RepoCard.load when passing a repo_id that is also a dir path #2771

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Jan 23, 2025

Fix #2768.

Simply replace repo_id_or_path.exists() by repo_id_or_path.is_file().

@Wauplin Wauplin requested a review from hanouticelina January 23, 2025 09:47
@HuggingFaceDocBuilderDev

It looks like you've updated code related to model or dataset cards in this PR.

Some content is duplicated among the following files. Please make sure that everything stays consistent.

Copy link
Contributor

@hanouticelina hanouticelina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@Wauplin Wauplin merged commit b7abb35 into main Jan 23, 2025
17 of 18 checks passed
@Wauplin Wauplin deleted the 2768-fix-loading-repo-card-from-folder branch January 23, 2025 09:52
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: processor.push_to_hub Fails with IsADirectoryError When Pushing to Hugging Face Hub
3 participants