Kalbe-x-Bangkit commited on
Commit
9e7a0b2
1 Parent(s): cfceade

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -31,19 +31,6 @@ bucket_load = storage_client.bucket(bucket_name_load)
31
 
32
  # Utility Functions #######################################################################
33
 
34
- # Upload Image #
35
- st.sidebar.title("Configuration")
36
- uploaded_file = st.sidebar.file_uploader("Upload Original Image", type=["png", "jpg", "jpeg", "dcm"])
37
- enhancement_type = st.sidebar.selectbox(
38
- "Enhancement Type",
39
- ["Invert", "High Pass Filter", "Unsharp Masking", "Histogram Equalization", "CLAHE"]
40
- )
41
-
42
- st.sidebar.title("Detection")
43
- uploaded_detection = st.sidebar.file_uploader("Upload image to detect", type=["png", "jpg", "jpeg", "dcm"])
44
- if st.sidebar.button('Open Viewer'):
45
- redirect_button("https://new-ohif-viewer-k7c3gdlxua-et.a.run.app/")
46
-
47
  # object detection ########################################################################
48
  H_detection = 224
49
  W_detection = 224
@@ -399,6 +386,19 @@ def redirect_button(url):
399
  ########################### Streamlit Interface ###########################################
400
  ###########################################################################################
401
 
 
 
 
 
 
 
 
 
 
 
 
 
 
402
  st.title("AI INTEGRATION FOR CHEST X-RAY")
403
 
404
  st.header("IMAGE ENHANCEMENT")
 
31
 
32
  # Utility Functions #######################################################################
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  # object detection ########################################################################
35
  H_detection = 224
36
  W_detection = 224
 
386
  ########################### Streamlit Interface ###########################################
387
  ###########################################################################################
388
 
389
+ # Upload Image #
390
+ st.sidebar.title("Configuration")
391
+ uploaded_file = st.sidebar.file_uploader("Upload Original Image", type=["png", "jpg", "jpeg", "dcm"])
392
+ enhancement_type = st.sidebar.selectbox(
393
+ "Enhancement Type",
394
+ ["Invert", "High Pass Filter", "Unsharp Masking", "Histogram Equalization", "CLAHE"]
395
+ )
396
+
397
+ st.sidebar.title("Detection")
398
+ uploaded_detection = st.sidebar.file_uploader("Upload image to detect", type=["png", "jpg", "jpeg", "dcm"])
399
+ if st.sidebar.button('Open Viewer'):
400
+ redirect_button("https://new-ohif-viewer-k7c3gdlxua-et.a.run.app/")
401
+
402
  st.title("AI INTEGRATION FOR CHEST X-RAY")
403
 
404
  st.header("IMAGE ENHANCEMENT")