subek commited on
Commit
f26202f
·
verified ·
1 Parent(s): e48d285

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -73,17 +73,17 @@ def main():
73
  st.write("**Download Sample Images:**")
74
 
75
  with st.markdown('<div class="download-buttons-container">', unsafe_allow_html=True):
76
- pneumonic_download = st.button("Download Pneumonic Image")
77
  normal_download = st.button("Download Normal Image")
78
-
79
- if pneumonic_download:
80
- pneumonic_image_path = "test-pneumonia_028.jpg"
81
- display_image_with_download(pneumonic_image_path, "Pneumonic Image", "Pneumonic Image")
82
 
83
  if normal_download:
84
  normal_image_path = "test-normal_001.jpg"
85
  display_image_with_download(normal_image_path, "Normal Image", "Normal Image")
86
 
 
 
 
 
87
  if uploaded_file is not None:
88
  st.image(uploaded_file, caption="Uploaded Image", use_column_width=True)
89
  st.markdown('</div>', unsafe_allow_html=True)
 
73
  st.write("**Download Sample Images:**")
74
 
75
  with st.markdown('<div class="download-buttons-container">', unsafe_allow_html=True):
 
76
  normal_download = st.button("Download Normal Image")
77
+ pneumonic_download = st.button("Download Pneumonic Image")
 
 
 
78
 
79
  if normal_download:
80
  normal_image_path = "test-normal_001.jpg"
81
  display_image_with_download(normal_image_path, "Normal Image", "Normal Image")
82
 
83
+ if pneumonic_download:
84
+ pneumonic_image_path = "test-pneumonia_028.jpg"
85
+ display_image_with_download(pneumonic_image_path, "Pneumonic Image", "Pneumonic Image")
86
+
87
  if uploaded_file is not None:
88
  st.image(uploaded_file, caption="Uploaded Image", use_column_width=True)
89
  st.markdown('</div>', unsafe_allow_html=True)