Likho User
commited on
Commit
·
e9861d4
1
Parent(s):
03535c5
Fix: Upgrade pip and pin exact versions of gradio/huggingface_hub
Browse files- Dockerfile +2 -1
- requirements.txt +2 -2
Dockerfile
CHANGED
|
@@ -54,7 +54,8 @@ USER root
|
|
| 54 |
|
| 55 |
# Python dependencies
|
| 56 |
COPY requirements.txt /tmp/requirements.txt
|
| 57 |
-
RUN pip3 install --no-cache-dir
|
|
|
|
| 58 |
|
| 59 |
# App Setup
|
| 60 |
WORKDIR /app
|
|
|
|
| 54 |
|
| 55 |
# Python dependencies
|
| 56 |
COPY requirements.txt /tmp/requirements.txt
|
| 57 |
+
RUN pip3 install --no-cache-dir --upgrade pip && \
|
| 58 |
+
pip3 install --no-cache-dir -r /tmp/requirements.txt
|
| 59 |
|
| 60 |
# App Setup
|
| 61 |
WORKDIR /app
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
gradio
|
| 2 |
-
huggingface_hub
|
| 3 |
fastapi
|
| 4 |
uvicorn
|
| 5 |
requests
|
|
|
|
| 1 |
+
gradio==4.44.1
|
| 2 |
+
huggingface_hub==0.26.2
|
| 3 |
fastapi
|
| 4 |
uvicorn
|
| 5 |
requests
|