idnameraj commited on
Commit
00c540f
·
verified ·
1 Parent(s): 8f6d79d

Upload 144 files

Browse files
Files changed (3) hide show
  1. Dockerfile +2 -3
  2. README.md +1 -2
  3. requirements.txt +2 -3
Dockerfile CHANGED
@@ -46,9 +46,8 @@ RUN curl -fsSL -o /tmp/lt.zip https://languagetool.org/download/LanguageTool-sta
46
  && test -f /opt/languagetool/languagetool-server.jar
47
 
48
  COPY requirements.txt .
49
- RUN pip install --upgrade pip && pip install -r requirements.txt \
50
- && pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl \
51
- && python -c "import nltk; nltk.download('wordnet'); nltk.download('omw-1.4')"
52
 
53
  COPY app ./app
54
  COPY app.py .
 
46
  && test -f /opt/languagetool/languagetool-server.jar
47
 
48
  COPY requirements.txt .
49
+ # spaCy model wheel is listed in requirements.txt; no NLTK/WordNet (structural engine)
50
+ RUN pip install --upgrade pip && pip install -r requirements.txt
 
51
 
52
  COPY app ./app
53
  COPY app.py .
README.md CHANGED
@@ -20,8 +20,7 @@ Auth (optional): **Supabase** Google + email login, Free/Pro/Plus quotas. See [d
20
 
21
  ```bash
22
  pip install -r requirements.txt
23
- pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl
24
- python -c "import nltk; nltk.download('wordnet'); nltk.download('omw-1.4')"
25
  ```
26
 
27
  ### 2. Env (optional auth)
 
20
 
21
  ```bash
22
  pip install -r requirements.txt
23
+ # spaCy en_core_web_sm is included via the wheel URL in requirements.txt
 
24
  ```
25
 
26
  ### 2. Env (optional auth)
requirements.txt CHANGED
@@ -8,7 +8,6 @@ python-multipart>=0.0.9
8
  httpx>=0.27.0
9
  PyJWT[crypto]>=2.8.0
10
  python-dotenv>=1.0.0
11
- pytest>=8.0.0
12
 
13
  # Optional: MiniLM safety scoring only (ENGINE_USE_MINILM_SAFETY=true)
14
  # fastembed>=0.4.2
@@ -17,5 +16,5 @@ pytest>=8.0.0
17
  # sentencepiece>=0.2.0
18
  # accelerate>=0.30.0
19
 
20
- # Optional legacy: WordNet synonym path (ALLOW_SYNONYM_REPLACEMENT unused by structural engine)
21
- # nltk>=3.9.0
 
8
  httpx>=0.27.0
9
  PyJWT[crypto]>=2.8.0
10
  python-dotenv>=1.0.0
 
11
 
12
  # Optional: MiniLM safety scoring only (ENGINE_USE_MINILM_SAFETY=true)
13
  # fastembed>=0.4.2
 
16
  # sentencepiece>=0.2.0
17
  # accelerate>=0.30.0
18
 
19
+ # Dev/test (not required for Docker runtime)
20
+ # pytest>=8.0.0