prthm11 commited on
Commit
3760b8e
·
verified ·
1 Parent(s): 0d08e31

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -33,6 +33,9 @@ RUN mkdir -p /app/cache /app/data && chmod -R 777 /app/cache /app/data
33
  RUN mkdir -p /app/OUTPUTS
34
  RUN chmod -R 777 /app
35
  RUN mkdir -p /app/nltk_data
 
 
 
36
 
37
  # Expose the required port for HF Spaces
38
  EXPOSE 7860
 
33
  RUN mkdir -p /app/OUTPUTS
34
  RUN chmod -R 777 /app
35
  RUN mkdir -p /app/nltk_data
36
+ # Pre-download required NLTK models
37
+ RUN python -m nltk.downloader -d /app/nltk_data \
38
+ punkt averaged_perceptron_tagger averaged_perceptron_tagger_eng
39
 
40
  # Expose the required port for HF Spaces
41
  EXPOSE 7860