Commit ·
a53ebf4
1
Parent(s): 76d6fcd
ok
Browse files
app.py
CHANGED
|
@@ -14,10 +14,7 @@ def predict(img):
|
|
| 14 |
result = "Infectée (1)" if prediction > 0.5 else "Non infectée (0)"
|
| 15 |
return f"{result} (confidence: {prediction:.2f})"
|
| 16 |
|
| 17 |
-
|
| 18 |
-
gr.
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
outputs="text",
|
| 22 |
-
title="Détecteur de paludisme"
|
| 23 |
-
).launch(share=True)
|
|
|
|
| 14 |
result = "Infectée (1)" if prediction > 0.5 else "Non infectée (0)"
|
| 15 |
return f"{result} (confidence: {prediction:.2f})"
|
| 16 |
|
| 17 |
+
gr.Interface(fn=predict,
|
| 18 |
+
inputs=gr.Image(type="pil"),
|
| 19 |
+
outputs="text",
|
| 20 |
+
title="Détecteur de paludisme").launch()
|
|
|
|
|
|
|
|
|