Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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"
|