TensorFlo commited on
Commit
a429bb3
·
1 Parent(s): f77abbc

improved frontend

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -64,19 +64,21 @@ st.text("Please download the example Excel file to see the expected format. You
64
  excel_file = st.file_uploader("Upload Excel file with student IDs and page count", type=["xlsx"])
65
  # excel_file = "data/essays.xlsx"
66
 
 
 
 
 
67
  if st.button("Process Essays"):
68
  if not uploaded_files or not essay_question or not grading_criteria or not excel_file:
69
  st.warning("Please upload all required files and enter necessary information.")
70
  else:
71
- st.text("Processing essays...This may take a few seconds.")
72
- st.text("A download button will appear underneath once the process is complete.")
73
  # assert that no duplicate files are uploaded
74
  uploaded_files_names = [file.name for file in uploaded_files]
75
  assert len(uploaded_files_names) == len(set(uploaded_files_names)), "Duplicate images uploaded. Please ensure that each image is only uploaded once."
76
 
77
  uploaded_files = sorted(uploaded_files, key=lambda x: x.name)
78
 
79
- print(uploaded_files)
80
  # Process student info file
81
  workbook = load_workbook(excel_file)
82
 
 
64
  excel_file = st.file_uploader("Upload Excel file with student IDs and page count", type=["xlsx"])
65
  # excel_file = "data/essays.xlsx"
66
 
67
+ st.subheader("Process Essays")
68
+ st.text("Processing essays may take a few seconds.")
69
+ st.text("A download button will appear underneath once the process is complete.")
70
+
71
  if st.button("Process Essays"):
72
  if not uploaded_files or not essay_question or not grading_criteria or not excel_file:
73
  st.warning("Please upload all required files and enter necessary information.")
74
  else:
75
+ st.text("Processing essays...")
 
76
  # assert that no duplicate files are uploaded
77
  uploaded_files_names = [file.name for file in uploaded_files]
78
  assert len(uploaded_files_names) == len(set(uploaded_files_names)), "Duplicate images uploaded. Please ensure that each image is only uploaded once."
79
 
80
  uploaded_files = sorted(uploaded_files, key=lambda x: x.name)
81
 
 
82
  # Process student info file
83
  workbook = load_workbook(excel_file)
84