Martin Tomov commited on
Commit
34fcfd8
1 Parent(s): 9a834bb

trying to apply desired styles

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -182,8 +182,7 @@ def detections_to_json(detections):
182
  "box": {
183
  "xmin": detection.box.xmin,
184
  "ymin": detection.box.ymin,
185
- "xmax": detection.box.xmax,
186
- "ymax": detection.box.xmax
187
  },
188
  "mask": run_length_encoding(detection.mask) if detection.mask is not None else None
189
  }
@@ -256,7 +255,7 @@ with gr.Blocks(css=css) as demo:
256
  with gr.Column():
257
  include_json = gr.Checkbox(label="Include JSON", value=False, elem_id="checkbox-group")
258
  include_bboxes = gr.Checkbox(label="Include Bounding Boxes", value=False, elem_id="checkbox-group")
259
- gr.Examples(examples=examples, inputs=[image_input, include_json, include_bboxes])
260
  submit_button = gr.Button("Submit", elem_id="submit-button")
261
 
262
  annotated_output = gr.Image(type="numpy")
 
182
  "box": {
183
  "xmin": detection.box.xmin,
184
  "ymin": detection.box.ymin,
185
+ "xmax": detection.box.xmax
 
186
  },
187
  "mask": run_length_encoding(detection.mask) if detection.mask is not None else None
188
  }
 
255
  with gr.Column():
256
  include_json = gr.Checkbox(label="Include JSON", value=False, elem_id="checkbox-group")
257
  include_bboxes = gr.Checkbox(label="Include Bounding Boxes", value=False, elem_id="checkbox-group")
258
+ gr.Examples(examples=examples, inputs=[image_input, include_json, include_bboxes])
259
  submit_button = gr.Button("Submit", elem_id="submit-button")
260
 
261
  annotated_output = gr.Image(type="numpy")