Unverified Commit b109257f authored by ulatekh's avatar ulatekh Committed by GitHub
Browse files

Fixed config.json download to go to user-supplied cache directory (#30189)

* Fixed config.json download to go to user-supplied cache directory.

* Simplied implementation suggested by @amyeroberts
parent db7d1554
...@@ -782,6 +782,7 @@ def pipeline( ...@@ -782,6 +782,7 @@ def pipeline(
_raise_exceptions_for_gated_repo=False, _raise_exceptions_for_gated_repo=False,
_raise_exceptions_for_missing_entries=False, _raise_exceptions_for_missing_entries=False,
_raise_exceptions_for_connection_errors=False, _raise_exceptions_for_connection_errors=False,
cache_dir=model_kwargs.get("cache_dir"),
**hub_kwargs, **hub_kwargs,
) )
hub_kwargs["_commit_hash"] = extract_commit_hash(resolved_config_file, commit_hash) hub_kwargs["_commit_hash"] = extract_commit_hash(resolved_config_file, commit_hash)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment