Spaces:
Runtime error
Runtime error
lgfunderburk
commited on
Commit
•
4c907cc
1
Parent(s):
34c0b61
add cuda
Browse files- Dockerfile +2 -0
- pyproject.toml +1 -1
Dockerfile
CHANGED
@@ -14,6 +14,8 @@ COPY pyproject.toml poetry.lock /app/
|
|
14 |
|
15 |
# Install poetry
|
16 |
RUN pip install poetry
|
|
|
|
|
17 |
|
18 |
# Set environment variable to create virtualenv within the project directory
|
19 |
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
|
|
|
14 |
|
15 |
# Install poetry
|
16 |
RUN pip install poetry
|
17 |
+
RUN pip install torch==1.10.0+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
|
18 |
+
|
19 |
|
20 |
# Set environment variable to create virtualenv within the project directory
|
21 |
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
|
pyproject.toml
CHANGED
@@ -8,7 +8,7 @@ readme = "README.md"
|
|
8 |
|
9 |
[tool.poetry.dependencies]
|
10 |
python = "^3.10"
|
11 |
-
torch =
|
12 |
farm-haystack = {extras = ["inference"], version = "^1.20.1"}
|
13 |
chainlit = "^0.7.0"
|
14 |
openai = "^0.28.0"
|
|
|
8 |
|
9 |
[tool.poetry.dependencies]
|
10 |
python = "^3.10"
|
11 |
+
torch = "1.10.0"
|
12 |
farm-haystack = {extras = ["inference"], version = "^1.20.1"}
|
13 |
chainlit = "^0.7.0"
|
14 |
openai = "^0.28.0"
|