Spaces:
Sleeping
Sleeping
Add description for plant types and update app.py
Browse files
README.md
CHANGED
|
@@ -7,7 +7,7 @@ sdk: gradio
|
|
| 7 |
sdk_version: 5.41.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
-
short_description:
|
| 11 |
|
| 12 |
---
|
| 13 |
|
|
|
|
| 7 |
sdk_version: 5.41.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
short_description: Detects diseases in pepper and potato plant leaves
|
| 11 |
|
| 12 |
---
|
| 13 |
|
app.py
CHANGED
|
@@ -2,13 +2,17 @@ import gradio as gr
|
|
| 2 |
from model import predict
|
| 3 |
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
iface = gr.Interface(
|
| 7 |
fn=predict,
|
| 8 |
inputs=gr.Image(type="pil"),
|
| 9 |
outputs=gr.Label(num_top_classes=1),
|
| 10 |
title="Plant Disease Classifier",
|
| 11 |
-
description=
|
| 12 |
)
|
| 13 |
iface.launch(share=True)
|
| 14 |
iface.launch(capture_session=True)
|
|
|
|
| 2 |
from model import predict
|
| 3 |
|
| 4 |
|
| 5 |
+
description = (
|
| 6 |
+
"Upload a clear image of a pepper or potato leaf. "
|
| 7 |
+
"The model predicts if the leaf is healthy or shows signs of disease."
|
| 8 |
+
)
|
| 9 |
|
| 10 |
iface = gr.Interface(
|
| 11 |
fn=predict,
|
| 12 |
inputs=gr.Image(type="pil"),
|
| 13 |
outputs=gr.Label(num_top_classes=1),
|
| 14 |
title="Plant Disease Classifier",
|
| 15 |
+
description=description
|
| 16 |
)
|
| 17 |
iface.launch(share=True)
|
| 18 |
iface.launch(capture_session=True)
|