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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -141,7 +141,7 @@ weights = "weights_nm.h5"
141
  def get_grad(img):
142
  img = img_pros(img)
143
  grad_model = create_grad_model(weights, 2, "softmax")
144
- grad_imgs, y_pred, infer = gen_grad_both(grad_model, img)
145
  # pred_class = ""
146
  # if y_pred[0] > 0.5: pred_class = "cat"
147
  # else: pred_class = "dog"
 
141
  def get_grad(img):
142
  img = img_pros(img)
143
  grad_model = create_grad_model(weights, 2, "softmax")
144
+ grad_img_c, grad_img_d, y_pred, infer = gen_grad_both(grad_model, img)
145
  # pred_class = ""
146
  # if y_pred[0] > 0.5: pred_class = "cat"
147
  # else: pred_class = "dog"