Move sidebar code line to the top.
Browse files
app.py
CHANGED
|
@@ -26,6 +26,13 @@ bucket_result = storage_client.bucket(bucket_name)
|
|
| 26 |
bucket_name_load = "da-ml-models"
|
| 27 |
bucket_load = storage_client.bucket(bucket_name_load)
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
# H = 224
|
| 30 |
# W = 224
|
| 31 |
|
|
@@ -67,9 +74,9 @@ bucket_load = storage_client.bucket(bucket_name_load)
|
|
| 67 |
# image = cv2.rectangle(image, (x1, y1), (x2, y2), (255, 0, 0), 2)
|
| 68 |
# return image
|
| 69 |
|
| 70 |
-
|
| 71 |
|
| 72 |
-
|
| 73 |
|
| 74 |
# model = load_model()
|
| 75 |
|
|
@@ -372,13 +379,6 @@ def load_model():
|
|
| 372 |
###########################################################################################
|
| 373 |
|
| 374 |
|
| 375 |
-
st.sidebar.title("Configuration")
|
| 376 |
-
uploaded_file = st.sidebar.file_uploader("Upload Original Image", type=["png", "jpg", "jpeg", "dcm"])
|
| 377 |
-
enhancement_type = st.sidebar.selectbox(
|
| 378 |
-
"Enhancement Type",
|
| 379 |
-
["Invert", "High Pass Filter", "Unsharp Masking", "Histogram Equalization", "CLAHE"]
|
| 380 |
-
)
|
| 381 |
-
|
| 382 |
# File uploader for DICOM files
|
| 383 |
if uploaded_file is not None:
|
| 384 |
if hasattr(uploaded_file, 'name'):
|
|
|
|
| 26 |
bucket_name_load = "da-ml-models"
|
| 27 |
bucket_load = storage_client.bucket(bucket_name_load)
|
| 28 |
|
| 29 |
+
st.sidebar.title("Configuration")
|
| 30 |
+
uploaded_file = st.sidebar.file_uploader("Upload Original Image", type=["png", "jpg", "jpeg", "dcm"])
|
| 31 |
+
enhancement_type = st.sidebar.selectbox(
|
| 32 |
+
"Enhancement Type",
|
| 33 |
+
["Invert", "High Pass Filter", "Unsharp Masking", "Histogram Equalization", "CLAHE"]
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
# H = 224
|
| 37 |
# W = 224
|
| 38 |
|
|
|
|
| 74 |
# image = cv2.rectangle(image, (x1, y1), (x2, y2), (255, 0, 0), 2)
|
| 75 |
# return image
|
| 76 |
|
| 77 |
+
## st.title("Chest X-ray Disease Detection")
|
| 78 |
|
| 79 |
+
## st.write("Upload a chest X-ray image and click on 'Detect' to find out if there's any disease.")
|
| 80 |
|
| 81 |
# model = load_model()
|
| 82 |
|
|
|
|
| 379 |
###########################################################################################
|
| 380 |
|
| 381 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 382 |
# File uploader for DICOM files
|
| 383 |
if uploaded_file is not None:
|
| 384 |
if hasattr(uploaded_file, 'name'):
|