Mohammed Foud commited on
Commit
7f87155
·
1 Parent(s): d0aaf42

first commit

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -2
  2. requirements.txt +2 -1
Dockerfile CHANGED
@@ -17,8 +17,10 @@ ENV PYTHONUNBUFFERED=1 \
17
  # Copy requirements first to leverage Docker cache
18
  COPY requirements.txt .
19
 
20
- # Install dependencies
21
- RUN pip install --no-cache-dir -r requirements.txt
 
 
22
 
23
  # Copy the rest of the application
24
  COPY . .
 
17
  # Copy requirements first to leverage Docker cache
18
  COPY requirements.txt .
19
 
20
+ # Install dependencies and download required NLTK data
21
+ RUN pip install --no-cache-dir -r requirements.txt && \
22
+ python -m textblob.download_corpora && \
23
+ python -c "import nltk; nltk.download('punkt'); nltk.download('averaged_perceptron_tagger'); nltk.download('wordnet')"
24
 
25
  # Copy the rest of the application
26
  COPY . .
requirements.txt CHANGED
@@ -7,4 +7,5 @@ torch>=2.0.0
7
  transformers>=4.30.0
8
  scikit-learn>=1.2.0
9
  textblob>=0.17.1
10
- tabulate>=0.9.0
 
 
7
  transformers>=4.30.0
8
  scikit-learn>=1.2.0
9
  textblob>=0.17.1
10
+ tabulate>=0.9.0
11
+ nltk>=3.8.1