Spaces:
Runtime error
Runtime error
update app
Browse files
app.py
CHANGED
@@ -19,10 +19,26 @@ def classify(im):
|
|
19 |
|
20 |
import gradio as gr
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
interface = gr.Interface(
|
23 |
classify,
|
24 |
inputs='image',
|
25 |
outputs='label',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
)
|
27 |
|
28 |
interface.launch(debug=True)
|
|
|
19 |
|
20 |
import gradio as gr
|
21 |
|
22 |
+
Instruction = "Browse the internet to search and download bean-leaf images with different leaf conditions"
|
23 |
+
title="Bean-leaf-disease Image classification demo"
|
24 |
+
description = "Drop an Input image to classify, Observe the model prediction across 3 distinct categories."
|
25 |
+
article = """
|
26 |
+
- Select an image from the examples provided as demo image
|
27 |
+
- Click submit button to make Image classification
|
28 |
+
- Click clear button to try new Image for classification
|
29 |
+
"""
|
30 |
+
|
31 |
interface = gr.Interface(
|
32 |
classify,
|
33 |
inputs='image',
|
34 |
outputs='label',
|
35 |
+
instructuction = Instruction,
|
36 |
+
title = title,
|
37 |
+
description = description,
|
38 |
+
article = article,
|
39 |
+
examples=["example-image1.jpg",
|
40 |
+
"example-image2.jpg",
|
41 |
+
"example-image3.jpeg"]
|
42 |
)
|
43 |
|
44 |
interface.launch(debug=True)
|