glitch0011 commited on
Commit
99c4583
1 Parent(s): 791e590

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -7,16 +7,7 @@ model = pipeline("ner", model="/home/user/app/mendobert/", tokenizer="indolem/in
7
 
8
  def text_analysis(text):
9
  doc = model(text)
10
- html = displacy.render(doc, style="dep", page=True)
11
- html = (
12
- "<div style='max-width:100%; max-height:360px; overflow:auto'>"
13
- + html
14
- + "</div>"
15
- )
16
- pos_count = {
17
- "char_count": len(text),
18
- "token_count": 0,
19
- }
20
  pos_tokens = []
21
 
22
  for token in doc:
 
7
 
8
  def text_analysis(text):
9
  doc = model(text)
10
+
 
 
 
 
 
 
 
 
 
11
  pos_tokens = []
12
 
13
  for token in doc: