Spaces:
Sleeping
Sleeping
Nikhil Singh
commited on
Commit
·
adc4ff3
1
Parent(s):
bd2022e
more fixes
Browse files- app.py +3 -2
- requirements.txt +2 -2
- 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
|
6 |
-
https://
|
|
|
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
|
|
|
|
|
|
|
|
|
|