We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 162e7f9 commit a8f7114Copy full SHA for a8f7114
3 files changed
nemoguardrails/library/factchecking/align_score/Dockerfile
@@ -9,9 +9,12 @@ WORKDIR /app
9
10
# Clone and install the alignscore package
11
RUN git clone https://github.com/yuh-zha/AlignScore.git
12
+
13
+COPY constraints.txt /app/AlignScore
14
15
WORKDIR /app/AlignScore
-RUN pip install --no-cache-dir .
16
17
+RUN pip install --no-cache-dir -c constraints.txt .
18
# Download the Spacy en_core_web_sm model
19
RUN python -m spacy download en_core_web_sm
20
nemoguardrails/library/factchecking/align_score/constraints.txt
@@ -0,0 +1,3 @@
1
2
+spacy==3.7.5
3
+# transformers>=4.20.1,<4.30 # resolve issue with alignscore pyproject.toml
nemoguardrails/library/factchecking/align_score/requirements.txt
@@ -4,3 +4,5 @@ fastapi>=0.109.1
4
starlette>=0.36.2
5
typer>=0.7.0
6
uvicorn>=0.23.2
7
8
+torch==2.0.1
0 commit comments