SkalskiP commited on
Commit
7d3a3bb
1 Parent(s): 9b36e34

change image format from numpy array to Pillow

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -154,20 +154,20 @@ with gr.Blocks() as demo:
154
  iou_threshold_component.render()
155
  with gr.Row():
156
  input_image_component = gr.Image(
157
- type='numpy',
158
  label='Input'
159
  )
160
  yolo_v8_output_image_component = gr.Image(
161
- type='numpy',
162
  label='YOLOv8'
163
  )
164
  with gr.Row():
165
  yolo_v9_output_image_component = gr.Image(
166
- type='numpy',
167
  label='YOLOv9'
168
  )
169
  yolo_v10_output_image_component = gr.Image(
170
- type='numpy',
171
  label='YOLOv10'
172
  )
173
  submit_button_component = gr.Button(
 
154
  iou_threshold_component.render()
155
  with gr.Row():
156
  input_image_component = gr.Image(
157
+ type='pil',
158
  label='Input'
159
  )
160
  yolo_v8_output_image_component = gr.Image(
161
+ type='pil',
162
  label='YOLOv8'
163
  )
164
  with gr.Row():
165
  yolo_v9_output_image_component = gr.Image(
166
+ type='pil',
167
  label='YOLOv9'
168
  )
169
  yolo_v10_output_image_component = gr.Image(
170
+ type='pil',
171
  label='YOLOv10'
172
  )
173
  submit_button_component = gr.Button(