Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = ["
|
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
|