Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ nlp = spacy.load("en_core_web_sm")
|
|
| 8 |
|
| 9 |
def text_analysis(text):
|
| 10 |
doc = nlp(text)
|
| 11 |
-
html = displacy.
|
| 12 |
html = (
|
| 13 |
""
|
| 14 |
+ html
|
|
|
|
| 8 |
|
| 9 |
def text_analysis(text):
|
| 10 |
doc = nlp(text)
|
| 11 |
+
html = displacy.serve(doc, style="dep", page=True)
|
| 12 |
html = (
|
| 13 |
""
|
| 14 |
+ html
|