Skip to content

Commit

Permalink
Install TF Text on non-Windows only (#2115)
Browse files Browse the repository at this point in the history
  • Loading branch information
abheesht17 authored and divyashreepathihalli committed Feb 27, 2025
1 parent c3805d3 commit 4801985
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Tensorflow.
tensorflow-cpu~=2.18.0;sys_platform != 'darwin'
tensorflow~=2.18.0;sys_platform == 'darwin'
tensorflow-text~=2.18
tensorflow-text~=2.18;platform_system != 'Windows'

# Torch.
--extra-index-url https://download.pytorch.org/whl/cpu
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ def get_version(rel_path):
"regex",
"rich",
"kagglehub",
"tensorflow-text;platform_system != 'Windows'",
],
extras_require={
"extras": [
"rouge-score",
"sentencepiece",
],
"nlp": ["tensorflow-text"],
},
# Supported Python versions
python_requires=">=3.9",
Expand Down

0 comments on commit 4801985

Please # to comment.