kinsung commited on
Commit
9daaec3
·
1 Parent(s): e58fe96
Files changed (1) hide show
  1. app.py +2 -1
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', 'people', 0.96, 800, 400], ['ex2.jpg', 'smiling face', 0.85, 300, 400]]
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()