rdezwart commited on
Commit
9b94c6b
·
1 Parent(s): 698fd5a

Adjust object detection layout

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -83,10 +83,11 @@ if __name__ == "__main__":
83
  )
84
 
85
  with gr.Tab("Object Detection"):
86
- with gr.Row():
87
  yolos_input = gr.Image(type="pil")
88
- yolos_output = gr.Gallery(label="Detected Objects", object_fit="scale-down", columns=3)
89
- yolos_button = gr.Button("Submit")
 
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():