Skip to content

Commit 34b3d8b

Browse files
authored
Skip private model loading for external contributors (#2130)
1 parent 21de42f commit 34b3d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/onnxruntime/test_modeling.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ def test_stable_diffusion_model_on_rocm_ep_str(self):
974974
def test_load_model_from_hub_private(self):
975975
token = os.environ.get("HF_HUB_READ_TOKEN", None)
976976

977-
if token is None:
977+
if not token:
978978
self.skipTest(
979979
"Test requires a read access token for optimum-internal-testing in the environment variable `HF_HUB_READ_TOKEN`."
980980
)

0 commit comments

Comments
 (0)