Spaces:
Running
Running
Adjust object detection layout
Browse files
app.py
CHANGED
@@ -83,10 +83,11 @@ if __name__ == "__main__":
|
|
83 |
)
|
84 |
|
85 |
with gr.Tab("Object Detection"):
|
86 |
-
with gr.
|
87 |
yolos_input = gr.Image(type="pil")
|
88 |
-
|
89 |
-
|
|
|
90 |
|
91 |
with gr.Tab("Inference"):
|
92 |
with gr.Row():
|
|
|
83 |
)
|
84 |
|
85 |
with gr.Tab("Object Detection"):
|
86 |
+
with gr.Column():
|
87 |
yolos_input = gr.Image(type="pil")
|
88 |
+
yolos_button = gr.Button("Submit")
|
89 |
+
with gr.Column():
|
90 |
+
yolos_output = gr.Gallery(label="Detected Objects", object_fit="contain", columns=3)
|
91 |
|
92 |
with gr.Tab("Inference"):
|
93 |
with gr.Row():
|