Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +0 -3
Dockerfile
CHANGED
|
@@ -19,9 +19,6 @@ RUN python -m venv /app/venv && \
|
|
| 19 |
/app/venv/bin/pip install --no-cache-dir --upgrade pip && \
|
| 20 |
/app/venv/bin/pip install --no-cache-dir -r requirements.txt
|
| 21 |
|
| 22 |
-
# Ensure the model cache directory exists and is writable
|
| 23 |
-
RUN mkdir -p $HF_HOME && chmod -R 777 $HF_HOME
|
| 24 |
-
=
|
| 25 |
RUN /app/venv/bin/python -c "from transformers import pipeline; \
|
| 26 |
pipeline('sentiment-analysis', model='tabularisai/multilingual-sentiment-analysis')" || echo "Failed to download model 1"
|
| 27 |
|
|
|
|
| 19 |
/app/venv/bin/pip install --no-cache-dir --upgrade pip && \
|
| 20 |
/app/venv/bin/pip install --no-cache-dir -r requirements.txt
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
RUN /app/venv/bin/python -c "from transformers import pipeline; \
|
| 23 |
pipeline('sentiment-analysis', model='tabularisai/multilingual-sentiment-analysis')" || echo "Failed to download model 1"
|
| 24 |
|