Commit 31be4220 authored by Patrick von Platen's avatar Patrick von Platen
Browse files

Don't call the Hub if `local_files_only` is specifiied (#2119)

Don't call the Hub if
parent 43c5ac2b
...@@ -501,7 +501,7 @@ class DiffusionPipeline(ConfigMixin): ...@@ -501,7 +501,7 @@ class DiffusionPipeline(ConfigMixin):
user_agent = http_user_agent(user_agent) user_agent = http_user_agent(user_agent)
if is_safetensors_available(): if is_safetensors_available() and not local_files_only:
info = model_info( info = model_info(
pretrained_model_name_or_path, pretrained_model_name_or_path,
use_auth_token=use_auth_token, use_auth_token=use_auth_token,
......
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