Skip to content

Commit

Permalink
sys_platform == 'darwin'
Browse files Browse the repository at this point in the history
  • Loading branch information
odulcy-mindee committed Nov 18, 2024
1 parent a6bce91 commit d8763e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ dependencies = [
[project.optional-dependencies]
tf = [
# cf. https://github.com/mindee/doctr/pull/1461
"tensorflow[and-cuda]>=2.15.0,<3.0.0",
"tensorflow[and-cuda]>=2.15.0,<3.0.0; sys_platform != 'darwin'",
"tensorflow>=2.15.0,<3.0.0; sys_platform == 'darwin'", # TensorFlow compatible for macOS
"tf-keras>=2.15.0,<3.0.0", # Keep keras 2 compatibility
"tf2onnx>=1.16.0,<2.0.0", # cf. https://github.com/onnx/tensorflow-onnx/releases/tag/v1.16.0
]
Expand Down

0 comments on commit d8763e9

Please sign in to comment.