Spaces:
Runtime error
Runtime error
Commit
·
6626681
1
Parent(s):
d3bcd7c
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,9 @@ import gradio as gr
|
|
2 |
from detection import ObjectDetection
|
3 |
|
4 |
examples = [
|
5 |
-
['test-images/plant1.jpeg', 0.
|
6 |
-
['test-images/plant2.jpeg', 0.
|
7 |
-
['test-images/plant3.webp', 0.
|
8 |
]
|
9 |
|
10 |
def get_predictions(img, threshold, box_color, text_color):
|
@@ -16,7 +16,7 @@ with gr.Blocks(title="Leaf Detection and Classification", theme=gr.themes.Monoch
|
|
16 |
gr.Markdown("# Leaf Detection and Classification")
|
17 |
with gr.Row():
|
18 |
with gr.Column():
|
19 |
-
image = gr.Image(shape=(
|
20 |
with gr.Column():
|
21 |
with gr.Row():
|
22 |
with gr.Column():
|
|
|
2 |
from detection import ObjectDetection
|
3 |
|
4 |
examples = [
|
5 |
+
['test-images/plant1.jpeg', 0.23],
|
6 |
+
['test-images/plant2.jpeg', 0.45],
|
7 |
+
['test-images/plant3.webp', 0.43],
|
8 |
]
|
9 |
|
10 |
def get_predictions(img, threshold, box_color, text_color):
|
|
|
16 |
gr.Markdown("# Leaf Detection and Classification")
|
17 |
with gr.Row():
|
18 |
with gr.Column():
|
19 |
+
image = gr.Image(shape=(100,100), label="Input Image")
|
20 |
with gr.Column():
|
21 |
with gr.Row():
|
22 |
with gr.Column():
|