We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf3aad4 commit 106a5b7Copy full SHA for 106a5b7
tests/openvino/test_modeling.py
@@ -395,7 +395,7 @@ def test_load_from_hub_and_save_stable_diffusion_model(self):
395
def test_load_model_from_hub_private_with_token(self):
396
model_id = "optimum-internal-testing/tiny-random-phi-private"
397
token = os.environ.get("HF_HUB_READ_TOKEN", None)
398
- if token is None:
+ if not token:
399
self.skipTest("Test requires a token `HF_HUB_READ_TOKEN` in the environment variable")
400
401
model = OVModelForCausalLM.from_pretrained(model_id, token=token, revision="openvino")
0 commit comments