Commit
•
00b5ecc
1
Parent(s):
9da9b42
Update app.py
Browse files
app.py
CHANGED
@@ -46,4 +46,9 @@ def predict(image):
|
|
46 |
image = gr.Image(type="pil")
|
47 |
label = gr.Textbox(label="Prediction")
|
48 |
|
49 |
-
gr.Interface(fn=predict,
|
|
|
|
|
|
|
|
|
|
|
|
46 |
image = gr.Image(type="pil")
|
47 |
label = gr.Textbox(label="Prediction")
|
48 |
|
49 |
+
gr.Interface(fn=predict,
|
50 |
+
inputs="image",
|
51 |
+
outputs="text",
|
52 |
+
title="Citrus Disease Classification",
|
53 |
+
description="Upload an image of a citrus leaf to classify its disease. The model is trained on the following diseases: Aleurocanthus spiniferus, Chancre citrique, Cochenille blanche, Dépérissement des agrumes, Feuille saine, Jaunissement des feuilles, Maladie de l'oïdium, Maladie du dragon jaune, Mineuse des agrumes, Trou de balle.",
|
54 |
+
examples=["maladie_du_dragon_jaune.jpg", "mineuse_des_agrumes.jpg"]).launch(share=True)
|