Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|