1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

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

Don't call the Hub if
This commit is contained in:
Patrick von Platen
2023-01-27 09:24:35 +02:00
parent 180841bbde
commit fdc0e38613

View File

@@ -505,7 +505,7 @@ class DiffusionPipeline(ConfigMixin):
user_agent = http_user_agent(user_agent)
if is_safetensors_available():
if is_safetensors_available() and not local_files_only:
info = model_info(
pretrained_model_name_or_path,
use_auth_token=use_auth_token,