Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,13 +54,15 @@ def get_pipeline_prediction(pil_image):
|
|
| 54 |
# Setting up Gradio interface with tabs for the outputs
|
| 55 |
demo = gr.Interface(
|
| 56 |
fn=get_pipeline_prediction,
|
| 57 |
-
inputs=gr.
|
| 58 |
outputs=[
|
| 59 |
-
gr.
|
| 60 |
-
gr.
|
| 61 |
],
|
| 62 |
-
|
| 63 |
-
|
|
|
|
|
|
|
| 64 |
)
|
| 65 |
|
| 66 |
demo.launch()
|
|
|
|
| 54 |
# Setting up Gradio interface with tabs for the outputs
|
| 55 |
demo = gr.Interface(
|
| 56 |
fn=get_pipeline_prediction,
|
| 57 |
+
inputs=gr.Image(label="Input image", type="pil"),
|
| 58 |
outputs=[
|
| 59 |
+
gr.Image(label="Annotated Image", type="pil"),
|
| 60 |
+
gr.JSON(label="Detected Objects")
|
| 61 |
],
|
| 62 |
+
examples=[
|
| 63 |
+
["sample1.jpg"], ["sample2.jpg"] # Update the example paths as needed
|
| 64 |
+
],
|
| 65 |
+
title="Object Detection Interface"
|
| 66 |
)
|
| 67 |
|
| 68 |
demo.launch()
|