subbunanepalli commited on
Commit
08c570f
·
verified ·
1 Parent(s): 93b526d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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)