Spaces:
Runtime error
Runtime error
abhibisht89
commited on
Commit
•
91d6217
1
Parent(s):
3dc0f32
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,21 @@
|
|
1 |
import os
|
2 |
-
os.system('pip install https://huggingface.co/kormilitzin/en_core_med7_lg/resolve/main/en_core_med7_lg-any-py3-none-any.whl')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
import gradio as gr
|
5 |
from spacy import displacy
|
6 |
import spacy
|
7 |
|
8 |
-
med7 = spacy.load("
|
9 |
|
10 |
def get_med7_ent(text):
|
11 |
|
|
|
1 |
import os
|
2 |
+
#os.system('pip install https://huggingface.co/kormilitzin/en_core_med7_lg/resolve/main/en_core_med7_lg-any-py3-none-any.whl')
|
3 |
+
|
4 |
+
os.system('pip install https://huggingface.co/kormilitzin/en_core_med7_trf/resolve/main/en_core_med7_trf-any-py3-none-any.whl')
|
5 |
+
|
6 |
+
# Using spacy.load().
|
7 |
+
#import spacy
|
8 |
+
#nlp = spacy.load("en_core_med7_trf")
|
9 |
+
|
10 |
+
# Importing as module.
|
11 |
+
#import en_core_med7_trf
|
12 |
+
#nlp = en_core_med7_trf.load()')
|
13 |
|
14 |
import gradio as gr
|
15 |
from spacy import displacy
|
16 |
import spacy
|
17 |
|
18 |
+
med7 = spacy.load("en_core_med7_trf")
|
19 |
|
20 |
def get_med7_ent(text):
|
21 |
|