Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -9
Dockerfile
CHANGED
|
@@ -10,17 +10,13 @@ ENV GRADIO_SERVER_PORT=7860
|
|
| 10 |
WORKDIR /app
|
| 11 |
COPY . /app
|
| 12 |
|
| 13 |
-
#
|
|
|
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
-
#
|
| 17 |
-
RUN pip install --no-cache-dir
|
| 18 |
-
|
| 19 |
-
# Pre-install packages the notebooks use via !pip install
|
| 20 |
-
RUN pip install --no-cache-dir textblob faker vaderSentiment transformers
|
| 21 |
-
|
| 22 |
-
RUN python -m ipykernel install --user --name python3 --display-name "Python 3"
|
| 23 |
|
| 24 |
EXPOSE 7860
|
| 25 |
|
| 26 |
-
CMD ["python", "app.py"]
|
|
|
|
| 10 |
WORKDIR /app
|
| 11 |
COPY . /app
|
| 12 |
|
| 13 |
+
# Install requirements first, then force-reinstall huggingface_hub at the end
|
| 14 |
+
# to override anything that other deps might bring in
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
| 17 |
+
# Force the correct huggingface_hub version (must come AFTER all other installs)
|
| 18 |
+
RUN pip install --no-cache-dir --force-reinstall huggingface_hub==0.24.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
EXPOSE 7860
|
| 21 |
|
| 22 |
+
CMD ["python", "app.py"]
|