Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,10 +38,10 @@ enhancement_type = st.sidebar.selectbox(
|
|
| 38 |
|
| 39 |
st.sidebar.title("Detection")
|
| 40 |
uploaded_detection = st.sidebar.file_uploader("Upload image to detect", type=["png", "jpg", "jpeg", "dcm"])
|
| 41 |
-
enhancement_type = st.sidebar.selectbox(
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
)
|
| 45 |
|
| 46 |
H_detection = 224
|
| 47 |
W_detection = 224
|
|
@@ -87,6 +87,8 @@ def draw_bbox(image, bbox):
|
|
| 87 |
|
| 88 |
st.title("AI INTEGRATION FOR CHEST X-RAY")
|
| 89 |
|
|
|
|
|
|
|
| 90 |
@st.cache_resource
|
| 91 |
def load_gradcam_model():
|
| 92 |
model = keras.models.load_model('./model_renamed.h5', compile=False)
|
|
|
|
| 38 |
|
| 39 |
st.sidebar.title("Detection")
|
| 40 |
uploaded_detection = st.sidebar.file_uploader("Upload image to detect", type=["png", "jpg", "jpeg", "dcm"])
|
| 41 |
+
# enhancement_type = st.sidebar.selectbox(
|
| 42 |
+
# "Enhancement Type",
|
| 43 |
+
# ["Invert", "High Pass Filter", "Unsharp Masking", "Histogram Equalization", "CLAHE"]
|
| 44 |
+
# )
|
| 45 |
|
| 46 |
H_detection = 224
|
| 47 |
W_detection = 224
|
|
|
|
| 87 |
|
| 88 |
st.title("AI INTEGRATION FOR CHEST X-RAY")
|
| 89 |
|
| 90 |
+
st.title("IMAGE ENHANCEMENT")
|
| 91 |
+
|
| 92 |
@st.cache_resource
|
| 93 |
def load_gradcam_model():
|
| 94 |
model = keras.models.load_model('./model_renamed.h5', compile=False)
|