Omar-Mostafa commited on
Commit
4654347
1 Parent(s): 2e7b051

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def predict(img):
38
  # confidences = {"Cat": prediction, 'Dog': 1 - prediction}
39
 
40
  # Return a tuple with the predicted label and confidence
41
- if prediction >= 0.48:
42
  # return {'Dog': prediction, "Cat": 1-prediction}
43
  return {'Dog': 1}
44
 
 
38
  # confidences = {"Cat": prediction, 'Dog': 1 - prediction}
39
 
40
  # Return a tuple with the predicted label and confidence
41
+ if prediction >= 0.47:
42
  # return {'Dog': prediction, "Cat": 1-prediction}
43
  return {'Dog': 1}
44