qgyd2021 commited on
Commit
9499ec0
·
1 Parent(s): 92fdab6

[update]add sent_tokenize

Browse files
Files changed (1) hide show
  1. main.py +2 -3
main.py CHANGED
@@ -5,9 +5,8 @@ import os
5
 
6
  from project_settings import project_path
7
 
8
- hf_hub_cache = (project_path / "cache/huggingface/hub").as_posix()
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