dar-tau commited on
Commit
aeda444
·
verified ·
1 Parent(s): 0e625ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -50,7 +50,11 @@ def analyze_sentence(index, vis_type, vis_format):
50
  for i in range(len(tokenized)-1) for j in range(i) if plot_data[i, j] > 0.5
51
  ]
52
  }]
53
- graph_output = displacy.render(ex, style="dep", manual=True)
 
 
 
 
54
  fig_output = None
55
  metrics = {'Metrics': 1}
56
 
 
50
  for i in range(len(tokenized)-1) for j in range(i) if plot_data[i, j] > 0.5
51
  ]
52
  }]
53
+ graph_output = displacy.render(ex, style="dep", jupyter=False, manual=True)
54
+ graph_output = ("<div style='max-width:100%; max-height:360px; overflow:auto'>"
55
+ + graph_output +
56
+ "</div>"
57
+ )
58
  fig_output = None
59
  metrics = {'Metrics': 1}
60