amitkayal commited on
Commit
e4cf61a
·
1 Parent(s): 02a2428

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def gradio_callback(view_grad_cam, num_gradcam_images, view_misclassified, num_m
82
  input_img, transparency = 0.5, target_layer_number = -1):
83
 
84
  confidence = inference_confidences(input_img, transparency = 0.5, target_layer_number = -1)
85
- if view_grad_cam:
86
  visualization = inference_visualization(input_img, transparency = 0.5, target_layer_number = -1)
87
  return confidence, visualization
88
  else:
 
82
  input_img, transparency = 0.5, target_layer_number = -1):
83
 
84
  confidence = inference_confidences(input_img, transparency = 0.5, target_layer_number = -1)
85
+ if view_grad_cam == "Yes":
86
  visualization = inference_visualization(input_img, transparency = 0.5, target_layer_number = -1)
87
  return confidence, visualization
88
  else: