clementBE commited on
Commit
943d038
·
verified ·
1 Parent(s): 36efdb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -263,8 +263,7 @@ demo = gr.Interface(
263
  show_label=True,
264
  elem_id="thumbnail-gallery",
265
  columns=5,
266
- object_fit="contain", # no warping
267
- square=False # keep aspect ratio
268
  ),
269
  gr.Image(type="pil", label="Basic Color Frequency"),
270
  gr.Image(type="pil", label="Top Prediction Distribution"),
 
263
  show_label=True,
264
  elem_id="thumbnail-gallery",
265
  columns=5,
266
+ object_fit="contain" # keep proportions, no stretching
 
267
  ),
268
  gr.Image(type="pil", label="Basic Color Frequency"),
269
  gr.Image(type="pil", label="Top Prediction Distribution"),