Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,9 @@ def analyze_sentence(index, vis_type, vis_format):
|
|
49 |
for i in range(len(tokenized) - 1) for j in range(i) if plot_data[i, j] > 0.5 and abs(i-j) > 1
|
50 |
]
|
51 |
}]
|
52 |
-
graph_output = displacy.render(ex, style="dep", jupyter=False, manual=True, options={"compact": True
|
|
|
|
|
53 |
graph_output = ("<div style='max-width:100%; zoom:80%; max-height:360px; overflow:auto'>"
|
54 |
+ graph_output +
|
55 |
"</div>"
|
|
|
49 |
for i in range(len(tokenized) - 1) for j in range(i) if plot_data[i, j] > 0.5 and abs(i-j) > 1
|
50 |
]
|
51 |
}]
|
52 |
+
graph_output = displacy.render(ex, style="dep", jupyter=False, manual=True, options={"compact": True,
|
53 |
+
"offset_x": 5,
|
54 |
+
})
|
55 |
graph_output = ("<div style='max-width:100%; zoom:80%; max-height:360px; overflow:auto'>"
|
56 |
+ graph_output +
|
57 |
"</div>"
|