nityathakkar commited on
Commit
b8c529c
·
verified ·
1 Parent(s): 2db8fa1

fixed annotations display bug

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -430,7 +430,7 @@ if option == "OpenReview paper ID":
430
  elif option == "Upload PDF with Review":
431
  user_text = st.text_area("Enter review:")
432
  uploaded_file = st.file_uploader("Upload PDF", type="pdf")
433
- model = st.text_input("Which model? ('GPT' or 'Claude')")
434
  iterations = st.text_input("How many iterations to run agent for?")
435
  if user_text and uploaded_file and model and iterations:
436
  upload_file = True
@@ -460,7 +460,7 @@ if user_input:
460
 
461
  st.title(f'Review feedback')
462
 
463
- if annotations['submission_id'].str.contains(str(paper_id)).any():
464
  st.write(f'We have a human annotation for {paper_id}')
465
  # Create four columns
466
  col1, col2, col3, col4 = st.columns(4)
 
430
  elif option == "Upload PDF with Review":
431
  user_text = st.text_area("Enter review:")
432
  uploaded_file = st.file_uploader("Upload PDF", type="pdf")
433
+ model = st.text_input("Which model? ('gpt' or 'claude')")
434
  iterations = st.text_input("How many iterations to run agent for?")
435
  if user_text and uploaded_file and model and iterations:
436
  upload_file = True
 
460
 
461
  st.title(f'Review feedback')
462
 
463
+ if not upload_file and annotations['submission_id'].str.contains(str(paper_id)).any():
464
  st.write(f'We have a human annotation for {paper_id}')
465
  # Create four columns
466
  col1, col2, col3, col4 = st.columns(4)