nityathakkar commited on
Commit
fcf1518
·
verified ·
1 Parent(s): 45821c4

fix annotation display part 2

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -462,6 +462,7 @@ if user_input:
462
  st.subheader('Human annotations')
463
  if annotations.loc[(annotations['submission_id'] == paper_id), 'annotation_label'].item() == 1:
464
  sentences = annotations.loc[(annotations['submission_id'] == paper_id), 'annotation_sentences'].item()
 
465
  for s in sentences:
466
  st.write(f"- {s}")
467
  else:
 
462
  st.subheader('Human annotations')
463
  if annotations.loc[(annotations['submission_id'] == paper_id), 'annotation_label'].item() == 1:
464
  sentences = annotations.loc[(annotations['submission_id'] == paper_id), 'annotation_sentences'].item()
465
+ sentences = ast.literal_eval(sentences)
466
  for s in sentences:
467
  st.write(f"- {s}")
468
  else: