fix nltk_data dir
Browse files- Dockerfile +1 -1
- README.md +1 -0
- 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 |
-
|
|
|
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")
|