Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -72,13 +72,6 @@ input_image = gr.Image(type="numpy")
|
|
72 |
plant_type = gr.Radio(["Apple", "Blueberry", "Cherry", "Corn", "Grape", "Orange", "Peach",
|
73 |
"Pepper", "Potato", "Raspberry", "Soybean", "Squash", "Strawberry", "Tomato"])
|
74 |
|
75 |
-
demo = gr.Interface(
|
76 |
-
fn=analyse,
|
77 |
-
inputs=[input_image, plant_type],
|
78 |
-
outputs=gr.JSON(),
|
79 |
-
title="Plant Disease Detection",
|
80 |
-
description="Upload an image of a plant leaf or use one of the example images below. Select the type of plant and the model will analyze it for diseases."
|
81 |
-
)
|
82 |
|
83 |
# Add examples component
|
84 |
examples = gr.Examples(
|
@@ -91,5 +84,14 @@ examples = gr.Examples(
|
|
91 |
examples_per_page=16
|
92 |
)
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
# Launch the interface
|
95 |
demo.launch(share=True, show_error=True)
|
|
|
72 |
plant_type = gr.Radio(["Apple", "Blueberry", "Cherry", "Corn", "Grape", "Orange", "Peach",
|
73 |
"Pepper", "Potato", "Raspberry", "Soybean", "Squash", "Strawberry", "Tomato"])
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
|
76 |
# Add examples component
|
77 |
examples = gr.Examples(
|
|
|
84 |
examples_per_page=16
|
85 |
)
|
86 |
|
87 |
+
demo = gr.Interface(
|
88 |
+
fn=analyse,
|
89 |
+
inputs=[input_image, plant_type],
|
90 |
+
examples,
|
91 |
+
outputs=gr.JSON(),
|
92 |
+
title="Plant Disease Detection",
|
93 |
+
description="Upload an image of a plant leaf or use one of the example images below. Select the type of plant and the model will analyze it for diseases."
|
94 |
+
)
|
95 |
+
|
96 |
# Launch the interface
|
97 |
demo.launch(share=True, show_error=True)
|