TensorFlo commited on
Commit
6e9921b
·
1 Parent(s): 20d4a20
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -21,15 +21,15 @@ st.subheader("Upload Student Essays")
21
  uploaded_files = st.file_uploader("Upload a folder of student essays (images). Please make sure that the images are in order i.e. first image is the first page of the first student, the second image is the second page of the first student (if it exists) untill all images of the first student are uploaded which should be followed by the ordererd pages of the second student, etc.", type=['jpg', 'jpeg', 'png'], accept_multiple_files=True)
22
 
23
  # Path to your example images (you need to place them in your project directory or provide a URL)
24
- image_1_path = "example_essay_1.png" # Example file path
25
- image_2_path = "example_essay_2.png" # Example file path
26
 
27
- # Example images section
28
- st.text("If you don't have any images to upload, you can download (and reupload) the example images below.")
29
 
30
- # Download buttons for the two example essays (images)
31
- download_image(image_1_path, "example_essay_1.png")
32
- download_image(image_2_path, "example_essay_2.png")
33
  # replace uploaded files with files loading from directory
34
  # image_dir = "data/images"
35
  # uploaded_files = []
 
21
  uploaded_files = st.file_uploader("Upload a folder of student essays (images). Please make sure that the images are in order i.e. first image is the first page of the first student, the second image is the second page of the first student (if it exists) untill all images of the first student are uploaded which should be followed by the ordererd pages of the second student, etc.", type=['jpg', 'jpeg', 'png'], accept_multiple_files=True)
22
 
23
  # Path to your example images (you need to place them in your project directory or provide a URL)
24
+ # image_1_path = "example_essay_1.png" # Example file path
25
+ # image_2_path = "example_essay_2.png" # Example file path
26
 
27
+ # # Example images section
28
+ # st.text("If you don't have any images to upload, you can download (and reupload) the example images below.")
29
 
30
+ # # Download buttons for the two example essays (images)
31
+ # download_image(image_1_path, "example_essay_1.png")
32
+ # download_image(image_2_path, "example_essay_2.png")
33
  # replace uploaded files with files loading from directory
34
  # image_dir = "data/images"
35
  # uploaded_files = []