ZELEFACK commited on
Commit
c45ab5a
1 Parent(s): 38b165d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ def classify_image(inp):
5
  inp = inp.reshape((-1, 224, 224, 3))
6
  prediction = model_0.predict(inp)
7
  output = ""
8
- if prediction[0][prediction.argmax()] < 0.8:
9
  output = "bonne image"
10
  elif prediction.argmax() == 0:
11
  output = "Rifle violence"
 
5
  inp = inp.reshape((-1, 224, 224, 3))
6
  prediction = model_0.predict(inp)
7
  output = ""
8
+ if prediction[0][prediction.argmax()] < 0.84:
9
  output = "bonne image"
10
  elif prediction.argmax() == 0:
11
  output = "Rifle violence"