Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -29,7 +29,7 @@ USER appuser
|
|
| 29 |
# Copy the application code
|
| 30 |
COPY --chown=appuser:appuser . .
|
| 31 |
|
| 32 |
-
# ✅ Pre-download the RoBERTa tokenizer
|
| 33 |
RUN python -c "from transformers import RobertaTokenizer; RobertaTokenizer.from_pretrained('roberta-base', cache_dir='/app/.cache')"
|
| 34 |
|
| 35 |
# Expose the port the app runs on (7860 for Hugging Face Spaces)
|
|
|
|
| 29 |
# Copy the application code
|
| 30 |
COPY --chown=appuser:appuser . .
|
| 31 |
|
| 32 |
+
# ✅ Pre-download the RoBERTa tokenizer (for offline or cached inference)
|
| 33 |
RUN python -c "from transformers import RobertaTokenizer; RobertaTokenizer.from_pretrained('roberta-base', cache_dir='/app/.cache')"
|
| 34 |
|
| 35 |
# Expose the port the app runs on (7860 for Hugging Face Spaces)
|