Spaces:
Sleeping
Sleeping
modif rep = 0.80
Browse files
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.
|
| 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"
|