ZELEFACK commited on
Commit
ce0f808
·
verified ·
1 Parent(s): 857f556

modif rep = 0.80

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def classify_image(inp):
75
  # inp = inp.reshape((-1, 224, 224, 3))
76
  prediction = model_0.predict(inp)
77
  output = ""
78
- if prediction[0][prediction.argmax()] < 0.84:
79
  output = "bonne image"
80
  elif prediction.argmax() == 0:
81
  output = "Rifle violence"
 
75
  # inp = inp.reshape((-1, 224, 224, 3))
76
  prediction = model_0.predict(inp)
77
  output = ""
78
+ if prediction[0][prediction.argmax()] < 0.80:
79
  output = "bonne image"
80
  elif prediction.argmax() == 0:
81
  output = "Rifle violence"