Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
|
| 4 |
import gradio as gr
|
| 5 |
import spacy
|
|
@@ -8,7 +8,7 @@ from spacy.language import Language
|
|
| 8 |
from spacy.matcher import PhraseMatcher
|
| 9 |
from spacy.tokens import Span
|
| 10 |
|
| 11 |
-
nlp = spacy.load("en_core_web_md")
|
| 12 |
|
| 13 |
def load(txt1, txt2, txt3, txt4):
|
| 14 |
user_input = str(txt1.strip())
|
|
|
|
| 1 |
+
import en_core_web_md
|
| 2 |
+
nlp = en_core_web_md.load()
|
| 3 |
|
| 4 |
import gradio as gr
|
| 5 |
import spacy
|
|
|
|
| 8 |
from spacy.matcher import PhraseMatcher
|
| 9 |
from spacy.tokens import Span
|
| 10 |
|
| 11 |
+
#nlp = spacy.load("en_core_web_md")
|
| 12 |
|
| 13 |
def load(txt1, txt2, txt3, txt4):
|
| 14 |
user_input = str(txt1.strip())
|