Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def analyze_sentence(index, vis_type, vis_format):
|
|
46 |
ex = [{
|
47 |
"words": [{"text": x} for x in tokenized],
|
48 |
"arcs": [{"start": i, "end": j} for j in range(i) else range(len(tokenized))]
|
49 |
-
|
50 |
graph_output = displacy.render(ex, style="dep", manual=True)
|
51 |
fig_output = None
|
52 |
metrics = {'Metrics': 1}
|
|
|
46 |
ex = [{
|
47 |
"words": [{"text": x} for x in tokenized],
|
48 |
"arcs": [{"start": i, "end": j} for j in range(i) else range(len(tokenized))]
|
49 |
+
}]
|
50 |
graph_output = displacy.render(ex, style="dep", manual=True)
|
51 |
fig_output = None
|
52 |
metrics = {'Metrics': 1}
|