Spaces:
Running
Running
Update Dockerfile
Browse files- 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 |
-
|
| 7 |
-
|
| 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 |
-
|
| 15 |
-
RUN pip install --no-cache-dir \
|
| 16 |
-
huggingface_hub \
|
| 17 |
-
gradio
|
| 18 |
|
| 19 |
-
#
|
| 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"]
|