vietlethe commited on
Commit
7de0fbb
1 Parent(s): ba9a4a9

fix nltk_data dir

Browse files
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. README.md +1 -0
  3. download_dependencies.py +1 -1
Dockerfile CHANGED
@@ -11,4 +11,4 @@ RUN pip3 install -r requirements.txt
11
  RUN python3 -m spacy download en_core_web_sm
12
  RUN python3 download_dependencies.py
13
 
14
- CMD ["python", "app.py"]
 
11
  RUN python3 -m spacy download en_core_web_sm
12
  RUN python3 download_dependencies.py
13
 
14
+ ENTRYPOINT ["python", "app.py"]
README.md CHANGED
@@ -44,6 +44,7 @@ git clone https://github.com/LETHEVIET/t5nyllama.git
44
  ```shell
45
  pip3 install -r requirements.txt
46
  python3 -m spacy download en_core_web_sm
 
47
  python3 download_dependencies.py
48
  ```
49
 
 
44
  ```shell
45
  pip3 install -r requirements.txt
46
  python3 -m spacy download en_core_web_sm
47
+ mkdir ./texteditor-model
48
  python3 download_dependencies.py
49
  ```
50
 
download_dependencies.py CHANGED
@@ -5,4 +5,4 @@ id = "1TnPssg0CkWQ_thuAH8cY3hdB2J18A0Kl"
5
  output = "texteditor-model/coedit-tinyllama-chat-bnb-4bit-unsloth.Q4_K_M.gguf"
6
  gdown.download(id=id, output=output)
7
 
8
- nltk.download('punkt')
 
5
  output = "texteditor-model/coedit-tinyllama-chat-bnb-4bit-unsloth.Q4_K_M.gguf"
6
  gdown.download(id=id, output=output)
7
 
8
+ nltk.download('punkt', download_dir="./nltk_data")