nihardon commited on
Commit
0858f84
·
verified ·
1 Parent(s): fdd3288

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -9
Dockerfile CHANGED
@@ -1,22 +1,17 @@
1
  FROM python:3.9
2
 
3
- # 2. Upgrade pip to ensure it can see the wheels
4
  RUN pip install --no-cache-dir --upgrade pip
5
 
6
- # 3. Install llama-cpp-python
7
- # We use '--prefer-binary' to FORCE it to download the wheel
8
- # We use the CPU-specific URL
9
  RUN pip install --no-cache-dir \
10
  llama-cpp-python \
11
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu \
12
  --prefer-binary
13
 
14
- # 4. Install other dependencies
15
- RUN pip install --no-cache-dir \
16
- huggingface_hub \
17
- gradio
18
 
19
- # 5. Set up the app
20
  WORKDIR /app
21
  COPY . .
22
  CMD ["python", "app.py"]
 
1
  FROM python:3.9
2
 
 
3
  RUN pip install --no-cache-dir --upgrade pip
4
 
5
+ RUN pip install "huggingface_hub<0.25.0"
6
+
 
7
  RUN pip install --no-cache-dir \
8
  llama-cpp-python \
9
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu \
10
  --prefer-binary
11
 
12
+ RUN pip install --no-cache-dir gradio
 
 
 
13
 
14
+ # Set up the app
15
  WORKDIR /app
16
  COPY . .
17
  CMD ["python", "app.py"]