sonobit commited on
Commit
ca2d055
·
1 Parent(s): f6c6d46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.render(doc, style="dep", page=True)
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