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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user