Nikhil Singh commited on
Commit
adc4ff3
·
1 Parent(s): bd2022e

more fixes

Browse files
Files changed (3) hide show
  1. app.py +3 -2
  2. requirements.txt +2 -2
  3. spaces.yml +0 -4
app.py CHANGED
@@ -8,9 +8,10 @@ from typing import Dict, Union, List
8
  import spacy
9
  import re
10
  import os
 
 
11
 
12
-
13
- nlp = spacy.load("en_core_web_sm")
14
  _MODEL = {}
15
  _CACHE_DIR = os.environ.get("CACHE_DIR", None)
16
 
 
8
  import spacy
9
  import re
10
  import os
11
+ import en_core_web_sm
12
+ nlp = en_core_web_sm.load()
13
 
14
+ # nlp = spacy.load("en_core_web_sm")
 
15
  _MODEL = {}
16
  _CACHE_DIR = os.environ.get("CACHE_DIR", None)
17
 
requirements.txt CHANGED
@@ -2,5 +2,5 @@ gliner
2
  mail-parser
3
  gradio
4
  beautifulsoup4
5
- spacy==3.0.6
6
- https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz
 
2
  mail-parser
3
  gradio
4
  beautifulsoup4
5
+ spacy
6
+ https://huggingface.co/spacy/en_core_web_sm/resolve/main/en_core_web_sm-any-py3-none-any.whl
spaces.yml DELETED
@@ -1,4 +0,0 @@
1
- # spaces.yml
2
- pip:
3
- - spacy==3.0.6
4
- - https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz