Skip to content

Commit

Permalink
Support subfolder with AutoProcessor (#29169)
Browse files Browse the repository at this point in the history
enable subfolder
  • Loading branch information
JingyaHuang authored and Ita Zaporozhets committed May 14, 2024
1 parent ce66274 commit 8b49acd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transformers/feature_extraction_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ def get_feature_extractor_dict(
force_download = kwargs.pop("force_download", False)
resume_download = kwargs.pop("resume_download", False)
proxies = kwargs.pop("proxies", None)
subfolder = kwargs.pop("subfolder", None)
token = kwargs.pop("token", None)
use_auth_token = kwargs.pop("use_auth_token", None)
local_files_only = kwargs.pop("local_files_only", False)
Expand Down Expand Up @@ -502,6 +503,7 @@ def get_feature_extractor_dict(
proxies=proxies,
resume_download=resume_download,
local_files_only=local_files_only,
subfolder=subfolder,
token=token,
user_agent=user_agent,
revision=revision,
Expand Down

0 comments on commit 8b49acd

Please sign in to comment.