Skip to content

Commit

Permalink
Fix postcommit python dependency workflow (#33865)
Browse files Browse the repository at this point in the history
  • Loading branch information
akashorabek authored Feb 5, 2025
1 parent f25c1c3 commit ccfc648
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def test_sentence_transformer_images_with_str_data_types(self):
embedding_config))


@unittest.skipIf(_HF_TOKEN is None, 'HF_TOKEN environment variable not set.')
@unittest.skipIf(not _HF_TOKEN, 'HF_TOKEN environment variable not set.')
class HuggingfaceInferenceAPITest(unittest.TestCase):
def setUp(self):
self.artifact_location = tempfile.mkdtemp()
Expand Down Expand Up @@ -366,7 +366,7 @@ def test_embeddings_with_inference_api(self):
assert_that(max_ele_pcoll, equal_to(expected_output))


@unittest.skipIf(_HF_TOKEN is None, 'HF_TOKEN environment variable not set.')
@unittest.skipIf(not _HF_TOKEN, 'HF_TOKEN environment variable not set.')
class HuggingfaceInferenceAPIGCSLocationTest(HuggingfaceInferenceAPITest):
def setUp(self):
self.artifact_location = self.gcs_artifact_location = os.path.join(
Expand Down
2 changes: 1 addition & 1 deletion sdks/python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ deps =
447: transformers>=4.47.0,<4.48.0
447: torch>=1.9.0,<1.14.0
448: transformers>=4.48.0,<4.49.0
448: torch>=2.0.0,torch<2.1.0
448: torch>=2.0.0,<2.1.0
latest: transformers>=4.48.0
latest: torch>=2.0.0
tensorflow==2.12.0
Expand Down

0 comments on commit ccfc648

Please sign in to comment.