maxachis commited on
Commit
0cfb1e0
·
1 Parent(s): 23b11f0

Replace spacy with spacy_huggingface_hub

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -1,11 +1,11 @@
1
  from typing import Dict, Any
2
 
3
- import spacy
4
  from environs import Env
5
  from huggingface_hub import hf_hub_download
6
  from joblib import load
7
 
8
- SPACY_MODEL = spacy.load('en_core_web_trf', disable=['parser']) # Largest, slowest, most accurate model
9
 
10
 
11
 
 
1
  from typing import Dict, Any
2
 
3
+ import en_core_web_trf
4
  from environs import Env
5
  from huggingface_hub import hf_hub_download
6
  from joblib import load
7
 
8
+ SPACY_MODEL = en_core_web_trf.load()
9
 
10
 
11