Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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
|