Kalbe-x-Bangkit commited on
Commit
3adf5d5
1 Parent(s): 89f9c2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -509,14 +509,14 @@ if uploaded_file is not None:
509
  with col1:
510
  redirect_button("https://new-ohif-viewer-k7c3gdlxua-et.a.run.app/")
511
 
512
- with col2:
513
  # model_detection = load_model_detection()
514
  # file_bytes = np.asarray(bytearray(uploaded_file.read()), dtype=np.uint8)
515
  # image = cv2.imdecode(file_bytes, 1)
516
 
517
  # st.image(image, caption='Uploaded Image.', use_column_width=True)
518
 
519
- st.button('Detect')
520
  # st.write("Processing...")
521
  # input_image = preprocess_image(image)
522
  # pred_bbox, pred_label, pred_label_confidence = predict(model_detection, input_image)
@@ -609,7 +609,7 @@ if uploaded_file is not None:
609
  # output_image = draw_bbox(image.copy(), pred_bbox)
610
  # st.image(output_image, caption='Detected Image.', use_column_width=True)
611
 
612
- with col3:
613
  if st.button('Generate Grad-CAM'):
614
  model=load_gradcam_model()
615
  # Compute and show Grad-CAM
 
509
  with col1:
510
  redirect_button("https://new-ohif-viewer-k7c3gdlxua-et.a.run.app/")
511
 
512
+ # with col2:
513
  # model_detection = load_model_detection()
514
  # file_bytes = np.asarray(bytearray(uploaded_file.read()), dtype=np.uint8)
515
  # image = cv2.imdecode(file_bytes, 1)
516
 
517
  # st.image(image, caption='Uploaded Image.', use_column_width=True)
518
 
519
+ # st.button('Detect')
520
  # st.write("Processing...")
521
  # input_image = preprocess_image(image)
522
  # pred_bbox, pred_label, pred_label_confidence = predict(model_detection, input_image)
 
609
  # output_image = draw_bbox(image.copy(), pred_bbox)
610
  # st.image(output_image, caption='Detected Image.', use_column_width=True)
611
 
612
+ with col2:
613
  if st.button('Generate Grad-CAM'):
614
  model=load_gradcam_model()
615
  # Compute and show Grad-CAM