francischung222 commited on
Commit
34337a4
·
1 Parent(s): 8b64fd4

fix buggy install in requirements.txt

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -0
  2. requirements.txt +0 -1
Dockerfile CHANGED
@@ -9,6 +9,8 @@ RUN apt-get update && apt-get install -y \
9
 
10
  # Copy requirements and install Python packages
11
  COPY requirements.txt .
 
 
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  # Copy application code
 
9
 
10
  # Copy requirements and install Python packages
11
  COPY requirements.txt .
12
+ # Install torch from CPU wheels explicitly to avoid source builds
13
+ RUN pip install --no-cache-dir torch==2.3.0 --index-url https://download.pytorch.org/whl/cpu
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
  # Copy application code
requirements.txt CHANGED
@@ -6,4 +6,3 @@ anthropic>=0.37.0
6
  python-dotenv>=1.0.0
7
  plotly>=5.18.0
8
  transformers>=4.44.0
9
- torch>=2.3.0
 
6
  python-dotenv>=1.0.0
7
  plotly>=5.18.0
8
  transformers>=4.44.0