Skip to content

Conversation

@RobinXL
Copy link
Contributor

@RobinXL RobinXL commented Sep 6, 2024

…b_utils.py

Fix when use local_files_only=True with subfolder, local variable 'cached_folder' referenced before assignment issue.

What does this PR do?

Fixes # (issue)

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

…b_utils.py

Fix when use `local_files_only=True` with `subfolder`, local variable 'cached_folder' referenced before assignment issue.
@RobinXL RobinXL changed the title Fix local variable 'cached_folder' referenced before assignment in hu… [Fix] when run load pretain with local_files_only, local variable 'cached_folder' referenced before assignment Sep 6, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2024

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot added the stale Issues that haven't received updates label Oct 6, 2024
@yiyixuxu yiyixuxu removed the stale Issues that haven't received updates label Oct 9, 2024
Copy link
Collaborator

@yiyixuxu yiyixuxu left a comment

Choose a reason for hiding this comment

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

thanks!

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@yiyixuxu yiyixuxu merged commit 79b118e into huggingface:main Oct 15, 2024
15 checks passed
sayakpaul pushed a commit that referenced this pull request Dec 23, 2024
…ched_folder' referenced before assignment (#9376)

Fix local variable 'cached_folder' referenced before assignment in hub_utils.py

Fix when use `local_files_only=True` with `subfolder`, local variable 'cached_folder' referenced before assignment issue.

Co-authored-by: YiYi Xu <yixu310@gmail.com>
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

Successfully merging this pull request may close these issues.

3 participants