From e10fe694159015e5af54fed8113b8aaf1dce7653 Mon Sep 17 00:00:00 2001 From: chrishalcrow <57948917+chrishalcrow@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:34:27 +0100 Subject: [PATCH] propogate trusted --- src/spikeinterface/curation/model_based_curation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spikeinterface/curation/model_based_curation.py b/src/spikeinterface/curation/model_based_curation.py index 0bc45e98ef..87b5693034 100644 --- a/src/spikeinterface/curation/model_based_curation.py +++ b/src/spikeinterface/curation/model_based_curation.py @@ -283,9 +283,9 @@ def load_model(model_folder=None, repo_id=None, model_name=None, trusted=None): elif model_folder is not None and repo_id is not None: raise ValueError("Please only provide one of 'model_folder' or 'repo_id'.") elif model_folder is not None: - model, model_info = _load_model_from_folder(model_folder=model_folder, model_name=model_name) + model, model_info = _load_model_from_folder(model_folder=model_folder, model_name=model_name, trusted=trusted) else: - model, model_info = _load_model_from_huggingface(repo_id=repo_id, model_name=model_name) + model, model_info = _load_model_from_huggingface(repo_id=repo_id, model_name=model_name, trusted=trusted) return model, model_info