rdezwart commited on
Commit
8a3a009
·
1 Parent(s): 8db35f3

Add interactive flag to match other image input

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -132,7 +132,7 @@ if __name__ == "__main__":
132
  with gr.Tab("Object Detection", id='yolos'):
133
  with gr.Row(equal_height=False):
134
  with gr.Group():
135
- yolos_input = gr.Image(label="Input Image", type="pil", mirror_webcam=False)
136
  yolos_submit = gr.Button("Detect Objects", interactive=False)
137
  with gr.Group():
138
  yolos_gallery = gr.Gallery(label="Detected Objects", object_fit="scale-down", columns=3,
 
132
  with gr.Tab("Object Detection", id='yolos'):
133
  with gr.Row(equal_height=False):
134
  with gr.Group():
135
+ yolos_input = gr.Image(label="Input Image", type="pil", interactive=True, mirror_webcam=False)
136
  yolos_submit = gr.Button("Detect Objects", interactive=False)
137
  with gr.Group():
138
  yolos_gallery = gr.Gallery(label="Detected Objects", object_fit="scale-down", columns=3,