[update]add sent_tokenize
Browse files
main.py
CHANGED
@@ -5,9 +5,8 @@ import os
|
|
5 |
|
6 |
from project_settings import project_path
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
os.environ["HUGGINGFACE_HUB_CACHE"] = hf_hub_cache
|
11 |
|
12 |
import gradio as gr
|
13 |
import nltk
|
|
|
5 |
|
6 |
from project_settings import project_path
|
7 |
|
8 |
+
os.environ["HUGGINGFACE_HUB_CACHE"] = (project_path / "cache/huggingface/hub").as_posix()
|
9 |
+
os.environ['NLTK_DATA'] = (project_path / "thirdparty_data/nltk_data").as_posix()
|
|
|
10 |
|
11 |
import gradio as gr
|
12 |
import nltk
|