Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,11 +21,11 @@ def detect(img):
|
|
21 |
img = img/255
|
22 |
prediction = model.predict(img)[0]
|
23 |
if format_decimal(prediction[0]) >= "0.5":
|
24 |
-
return "
|
25 |
if format_decimal(prediction[1]) >= "0.5":
|
26 |
return "Poumon sain"
|
27 |
if format_decimal(prediction[2]) >= "0.5":
|
28 |
-
return "
|
29 |
|
30 |
|
31 |
# result = detect(img)
|
|
|
21 |
img = img/255
|
22 |
prediction = model.predict(img)[0]
|
23 |
if format_decimal(prediction[0]) >= "0.5":
|
24 |
+
return "Risque d'infection bactérienne"
|
25 |
if format_decimal(prediction[1]) >= "0.5":
|
26 |
return "Poumon sain"
|
27 |
if format_decimal(prediction[2]) >= "0.5":
|
28 |
+
return "Risque d'infection biologique"
|
29 |
|
30 |
|
31 |
# result = detect(img)
|