Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"
|
| 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"),
|