jw2yang commited on
Commit
d17dc3d
1 Parent(s): 970fb7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()