Spaces:
Sleeping
Sleeping
fix annotation label indexing bug
Browse files
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")
|