Spaces:
Running
Running
NaveenKumar Namachivayam commited on
Commit ·
f13ddd6
1
Parent(s): 0353411
fix: restore requirements.txt-based install in Dockerfile
Browse filesCopy requirements.txt before pip install so all dependencies resolve
together in one transaction. Pin gradio>=4.44.1 and huggingface-hub
to avoid HfFolder import errors while keeping compatible versions.
Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com
- Dockerfile +3 -3
- requirements.txt +2 -0
Dockerfile
CHANGED
|
@@ -16,9 +16,9 @@ RUN apt-get update && apt-get install -y \
|
|
| 16 |
|
| 17 |
RUN pip install --no-cache-dir pip -U
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
|
| 23 |
COPY . /app
|
| 24 |
|
|
|
|
| 16 |
|
| 17 |
RUN pip install --no-cache-dir pip -U
|
| 18 |
|
| 19 |
+
COPY requirements.txt /app/requirements.txt
|
| 20 |
+
|
| 21 |
+
RUN pip install --no-cache-dir -r /app/requirements.txt
|
| 22 |
|
| 23 |
COPY . /app
|
| 24 |
|
requirements.txt
CHANGED
|
@@ -1 +1,3 @@
|
|
| 1 |
torch>=2.0.0
|
|
|
|
|
|
|
|
|
| 1 |
torch>=2.0.0
|
| 2 |
+
gradio>=4.44.1
|
| 3 |
+
huggingface-hub>=0.30,<1.0.0
|