AlonBBar commited on
Commit
86e7584
·
1 Parent(s): adde12e

Add description for plant types and update app.py

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +5 -1
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: Detect plant diseases from leaf images
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="Upload a leaf image and the model predicts the disease."
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)