ongkn commited on
Commit
8cc08e3
1 Parent(s): fd64a1e
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ def classify_image(input):
59
  return result[0]["label"], result[0]["score"], "Pretty!", face, dffImage, gradCamImage
60
  elif result[0]["label"] == "pos" and result[0]["score"] > 0.95 and result[0]["score"] <= 0.98:
61
  return result[0]["label"], result[0]["score"], "WHOA!!!!", face, dffImage, gradCamImage
62
- elif result[0]["label"] == "pos" and result[0]["score"] >= 0.99:
63
  return result[0]["label"], result[0]["score"], "** ABSOLUTELY MINDBLOWING **", face, dffImage, gradCamImage
64
  else:
65
  return cls, result[0]["score"], "Indifferent", face, dffImage, gradCamImage
 
59
  return result[0]["label"], result[0]["score"], "Pretty!", face, dffImage, gradCamImage
60
  elif result[0]["label"] == "pos" and result[0]["score"] > 0.95 and result[0]["score"] <= 0.98:
61
  return result[0]["label"], result[0]["score"], "WHOA!!!!", face, dffImage, gradCamImage
62
+ elif result[0]["label"] == "pos" and result[0]["score"] > 0.98:
63
  return result[0]["label"], result[0]["score"], "** ABSOLUTELY MINDBLOWING **", face, dffImage, gradCamImage
64
  else:
65
  return cls, result[0]["score"], "Indifferent", face, dffImage, gradCamImage