Spaces:
Runtime error
Runtime error
img
Browse files
app.py
CHANGED
@@ -51,6 +51,7 @@ def extract_image(image, custom_width, custom_height):
|
|
51 |
|
52 |
return cropped_image
|
53 |
|
|
|
54 |
description = "<p style='color:white'>Crop an image with the area containing the most detected objects while maintaining custom dimensions and adding a 10-pixel bleed. The area is centralized within the custom dimensions.</p>"
|
55 |
-
examples = [['ex3.jpg',
|
56 |
gr.Interface(fn=extract_image, inputs=[i1, i2, i3], outputs=[o1], title=title, description=description, examples=examples, enable_queue=True).launch()
|
|
|
51 |
|
52 |
return cropped_image
|
53 |
|
54 |
+
title = "Social Media Crop"
|
55 |
description = "<p style='color:white'>Crop an image with the area containing the most detected objects while maintaining custom dimensions and adding a 10-pixel bleed. The area is centralized within the custom dimensions.</p>"
|
56 |
+
examples = [['ex3.jpg', 800, 400], ['cat.png', 400, 400]]
|
57 |
gr.Interface(fn=extract_image, inputs=[i1, i2, i3], outputs=[o1], title=title, description=description, examples=examples, enable_queue=True).launch()
|