nityathakkar commited on
Commit
f130f42
·
verified ·
1 Parent(s): 3bd4c5b

fix annotation label indexing bug

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -460,7 +460,7 @@ if user_input:
460
  # Column 2: Display human annotations
461
  with col2:
462
  st.subheader('Human annotations')
463
- if annotations['annotation_label'] == 1:
464
  st.write(annotations['annotation_sentences'])
465
  else:
466
  st.write("No human feedback on this review")
 
460
  # Column 2: Display human annotations
461
  with col2:
462
  st.subheader('Human annotations')
463
+ if annotations.loc[(annotations['submission_id'] == paper_id), 'annotation_label'].item() == 1:
464
  st.write(annotations['annotation_sentences'])
465
  else:
466
  st.write("No human feedback on this review")