lgfunderburk commited on
Commit
997e239
1 Parent(s): 0803c7d
Files changed (2) hide show
  1. Dockerfile +0 -3
  2. pyproject.toml +3 -1
Dockerfile CHANGED
@@ -28,9 +28,6 @@ COPY pyproject.toml poetry.lock /app/
28
  RUN pip install --upgrade pip
29
  RUN pip install poetry
30
 
31
- # Install the CPU-only version of torch
32
- RUN pip install torch==1.11.0+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
33
-
34
  # Set environment variable to create a virtual environment within the project directory
35
  ENV POETRY_VIRTUALENVS_IN_PROJECT=true
36
 
 
28
  RUN pip install --upgrade pip
29
  RUN pip install poetry
30
 
 
 
 
31
  # Set environment variable to create a virtual environment within the project directory
32
  ENV POETRY_VIRTUALENVS_IN_PROJECT=true
33
 
pyproject.toml CHANGED
@@ -8,7 +8,9 @@ readme = "README.md"
8
 
9
  [tool.poetry.dependencies]
10
  python = "^3.9"
11
- torch = "1.11.0+cpu"
 
 
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.9"
11
+ torch = [
12
+ {url = "https://download.pytorch.org/whl/cpu/torch-1.10.0%2Bcpu-cp39-cp39-linux_x86_64.whl", markers = "sys_platform == 'linux'"},
13
+ ]
14
  farm-haystack = {extras = ["inference"], version = "^1.20.1"}
15
  chainlit = "^0.7.0"
16
  openai = "^0.28.0"