Spaces:
Sleeping
Sleeping
Commit ·
c888cb4
1
Parent(s): 89fc034
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,9 +23,9 @@ def detect_objects(input_image):
|
|
| 23 |
return output_image, f"Objects in the image: {len(cnt)}"
|
| 24 |
|
| 25 |
# Define a Gradio interface
|
| 26 |
-
input_image = gr.
|
| 27 |
-
output_image = gr.
|
| 28 |
-
output_text = gr.
|
| 29 |
|
| 30 |
gr.Interface(
|
| 31 |
fn=detect_objects,
|
|
|
|
| 23 |
return output_image, f"Objects in the image: {len(cnt)}"
|
| 24 |
|
| 25 |
# Define a Gradio interface
|
| 26 |
+
input_image = gr.Image()
|
| 27 |
+
output_image = gr.Image()
|
| 28 |
+
output_text = gr.Text()
|
| 29 |
|
| 30 |
gr.Interface(
|
| 31 |
fn=detect_objects,
|