Spaces:
Sleeping
Sleeping
change annotation display
Browse files
app.py
CHANGED
@@ -412,7 +412,7 @@ if option == "OpenReview paper ID":
|
|
412 |
reviewer_id = st.text_input("Enter reviewer ID (e.g. gNxe):")
|
413 |
reviewer_id = reviewer_id.strip()
|
414 |
model = st.text_input("Which model? ('gpt' or 'claude')")
|
415 |
-
if paper_id and reviewer_id:
|
416 |
upload_file = False
|
417 |
user_input = True
|
418 |
submissions = load_ICLR_submissions()
|
@@ -423,7 +423,7 @@ elif option == "Upload PDF with Review":
|
|
423 |
user_text = st.text_area("Enter review:")
|
424 |
uploaded_file = st.file_uploader("Upload PDF", type="pdf")
|
425 |
model = st.text_input("Which model? ('GPT' or 'Claude')")
|
426 |
-
if user_text and uploaded_file:
|
427 |
upload_file = True
|
428 |
user_input = True
|
429 |
review, pdf = user_text, uploaded_file
|
@@ -461,7 +461,9 @@ if user_input:
|
|
461 |
with col2:
|
462 |
st.subheader('Human annotations')
|
463 |
if annotations.loc[(annotations['submission_id'] == paper_id), 'annotation_label'].item() == 1:
|
464 |
-
|
|
|
|
|
465 |
else:
|
466 |
st.write("No human feedback on this review")
|
467 |
|
|
|
412 |
reviewer_id = st.text_input("Enter reviewer ID (e.g. gNxe):")
|
413 |
reviewer_id = reviewer_id.strip()
|
414 |
model = st.text_input("Which model? ('gpt' or 'claude')")
|
415 |
+
if paper_id and reviewer_id and model:
|
416 |
upload_file = False
|
417 |
user_input = True
|
418 |
submissions = load_ICLR_submissions()
|
|
|
423 |
user_text = st.text_area("Enter review:")
|
424 |
uploaded_file = st.file_uploader("Upload PDF", type="pdf")
|
425 |
model = st.text_input("Which model? ('GPT' or 'Claude')")
|
426 |
+
if user_text and uploaded_file and model:
|
427 |
upload_file = True
|
428 |
user_input = True
|
429 |
review, pdf = user_text, uploaded_file
|
|
|
461 |
with col2:
|
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:
|
468 |
st.write("No human feedback on this review")
|
469 |
|