Skip to content

Commit 2138bd9

Browse files
RyanMullinsLIT team
authored andcommitted
Isolate TF dependencies to lit_nlp.examples module.
PiperOrigin-RevId: 603107736
1 parent 243a058 commit 2138bd9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import tempfile
33

44
from lit_nlp.api import types as lit_types
5-
from lit_nlp.components import tfx_model
5+
from lit_nlp.examples.models import tfx_model
66
import tensorflow as tf
77

88

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ dependencies = [
3636
"scipy==1.10.1",
3737
"shap==0.37.0",
3838
"six==1.16.0",
39-
"tensorflow==2.10.0",
40-
"tensorflow-text==2.10.0",
4139
"termcolor==2.3.0",
4240
"tqdm==4.64.0",
4341
"umap-learn==0.5.1",
@@ -82,7 +80,9 @@ keywords = [
8280
# LINT.IfChange
8381
examples = [
8482
"gunicorn==20.1.0",
83+
"tensorflow==2.10.0",
8584
"tensorflow-datasets==4.8.0",
85+
"tensorflow-text==2.10.0",
8686
"torch==2.0.1",
8787
"transformers==4.27.1",
8888
]

requirements_core.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ scikit-learn==1.0.2
3535
scipy==1.10.1
3636
shap==0.37.0
3737
six==1.16.0
38-
tensorflow==2.10.0
39-
tensorflow-text==2.10.0
4038
termcolor==2.3.0
4139
tqdm==4.64.0
4240
umap-learn==0.5.1

requirements_examples.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
# LINT.IfChange
1616
gunicorn==20.1.0
1717
sentencepiece==0.1.99
18+
tensorflow==2.10.0
1819
tensorflow-datasets==4.8.0
20+
tensorflow-text==2.10.0
1921
torch==2.0.1
2022
transformers==4.27.1
2123
# LINT.ThenChange(./pyproject.toml)

0 commit comments

Comments
 (0)