Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def classify_image(inp):
|
|
96 |
modulator = (modulator - modulator.min()) / (modulator.max() - modulator.min())
|
97 |
cam3 = show_cam_on_image(img_d, modulator, use_rgb=True)
|
98 |
|
99 |
-
return {labels[i]: float(prediction[i]) for i in range(1000)}, Image.fromarray(cam0), Image.fromarray(cam1), Image.fromarray(cam2), Image.fromarray(cam3), Image.fromarray(img_d)
|
100 |
|
101 |
|
102 |
image = gr.inputs.Image()
|
|
|
96 |
modulator = (modulator - modulator.min()) / (modulator.max() - modulator.min())
|
97 |
cam3 = show_cam_on_image(img_d, modulator, use_rgb=True)
|
98 |
|
99 |
+
return {labels[i]: float(prediction[i]) for i in range(1000)}, Image.fromarray(cam0), Image.fromarray(cam1), Image.fromarray(cam2), Image.fromarray(cam3), Image.fromarray(np.uint8(255 * img_d))
|
100 |
|
101 |
|
102 |
image = gr.inputs.Image()
|