Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def analyze_sentence(index, vis_type):
|
|
34 |
plt.ylabel('TARGET')
|
35 |
plt.xlabel('SOURCE')
|
36 |
plt.grid()
|
37 |
-
metrics = {k: v for k, v in row.items() if
|
38 |
return fig
|
39 |
|
40 |
demo = gr.Blocks()
|
|
|
34 |
plt.ylabel('TARGET')
|
35 |
plt.xlabel('SOURCE')
|
36 |
plt.grid()
|
37 |
+
metrics = {k: v for k, v in row.items() if k not in ['text', 'attention_maps', 'attention_maps_shape']}
|
38 |
return fig
|
39 |
|
40 |
demo = gr.Blocks()
|