dar-tau commited on
Commit
8b3b771
·
verified ·
1 Parent(s): fa755f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 x not in ['text', 'attention_maps', 'attention_maps_shape']}
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()