subek commited on
Commit
0deb3e1
·
verified ·
1 Parent(s): 0eec3e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def show_image(image, title="Image"):
63
 
64
  # Function to download sample images
65
  def download_sample_images():
66
- sample_images = ["sample_image1.jpg", "sample_image2.jpg", "sample_image3.jpg"] # Add the names of your sample images
67
 
68
  for image_name in sample_images:
69
  image_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), image_name)
@@ -86,6 +86,9 @@ def main():
86
 
87
  # Allow user to upload an image
88
  uploaded_file = st.file_uploader("Upload a brain scan image...", type=["jpg", "png", "jpeg"])
 
 
 
89
 
90
  if uploaded_file is not None:
91
  # Read the uploaded image
 
63
 
64
  # Function to download sample images
65
  def download_sample_images():
66
+ sample_images = ["1.png", "2.png", "3.png"]
67
 
68
  for image_name in sample_images:
69
  image_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), image_name)
 
86
 
87
  # Allow user to upload an image
88
  uploaded_file = st.file_uploader("Upload a brain scan image...", type=["jpg", "png", "jpeg"])
89
+
90
+ # Download sample images button
91
+ download_sample_images()
92
 
93
  if uploaded_file is not None:
94
  # Read the uploaded image