Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ def inference(input_img, transparancy = 0.5, target_layer_number = -1):
|
|
| 53 |
visualization = show_cam_on_image(org_img/255,grayscale_cam,use_rgb=True,
|
| 54 |
image_weight=transparancy)
|
| 55 |
|
| 56 |
-
return classes[prediction[0].item()], visualization, confidences
|
| 57 |
|
| 58 |
demo = gr.Interface(
|
| 59 |
inference,
|
|
|
|
| 53 |
visualization = show_cam_on_image(org_img/255,grayscale_cam,use_rgb=True,
|
| 54 |
image_weight=transparancy)
|
| 55 |
|
| 56 |
+
return classes[int(prediction[0].item())], visualization, confidences
|
| 57 |
|
| 58 |
demo = gr.Interface(
|
| 59 |
inference,
|