Spaces:
Sleeping
Sleeping
fix annotation display part 2
Browse files
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:
|