Spaces:
Sleeping
Sleeping
jleitefilho
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def detect(image):
|
|
73 |
demo = gr.Interface(
|
74 |
fn=detect,
|
75 |
examples=["drone3.jpg", "drone.jpg", "nelore1.png", "nelore3.png", "nelore4.jpg"],
|
76 |
-
inputs=[gr.
|
77 |
outputs=[gr.Image(label="Output image"), gr.BarPlot(show_label=False, x="label", y="counts", x_title="Labels", y_title="Counts", vertical=False), gr.Textbox(show_label=False)],
|
78 |
title="Bull Counter 2.0",
|
79 |
cache_examples=False
|
|
|
73 |
demo = gr.Interface(
|
74 |
fn=detect,
|
75 |
examples=["drone3.jpg", "drone.jpg", "nelore1.png", "nelore3.png", "nelore4.jpg"],
|
76 |
+
inputs=[gr.components.Image(label="Input image", type="pil")],
|
77 |
outputs=[gr.Image(label="Output image"), gr.BarPlot(show_label=False, x="label", y="counts", x_title="Labels", y_title="Counts", vertical=False), gr.Textbox(show_label=False)],
|
78 |
title="Bull Counter 2.0",
|
79 |
cache_examples=False
|