Upload loaders.py with huggingface_hub
Browse files- loaders.py +1 -1
loaders.py
CHANGED
@@ -101,7 +101,7 @@ class LoadHF(Loader):
|
|
101 |
keep_in_memory=True,
|
102 |
cache_dir=dir_to_be_deleted,
|
103 |
split=self.split,
|
104 |
-
|
105 |
)
|
106 |
except ValueError as e:
|
107 |
if "trust_remote_code" in str(e):
|
|
|
101 |
keep_in_memory=True,
|
102 |
cache_dir=dir_to_be_deleted,
|
103 |
split=self.split,
|
104 |
+
trust_remote_code=settings.allow_unverified_code,
|
105 |
)
|
106 |
except ValueError as e:
|
107 |
if "trust_remote_code" in str(e):
|