OmerFarooq commited on
Commit
698782a
1 Parent(s): b121d4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ def gen_grad_both(grad_model, img):
131
  # show_imgs([img_c, img_d], [y_true, y_true], [size[0], size[1]], cols, [y_pred_c, y_pred_d], font_size = font_size)
132
 
133
  infer = ""
134
- if y_pred_c[0] > y_pred_c[1]: infer = "cat"
135
  else: infer = "dog"
136
 
137
  return img_c, img_d, y_pred_c, infer
 
131
  # show_imgs([img_c, img_d], [y_true, y_true], [size[0], size[1]], cols, [y_pred_c, y_pred_d], font_size = font_size)
132
 
133
  infer = ""
134
+ if y_pred_c[0][0] > y_pred_c[0][1]: infer = "cat"
135
  else: infer = "dog"
136
 
137
  return img_c, img_d, y_pred_c, infer