hansoneze commited on
Commit
73c7fd9
·
1 Parent(s): c37faf7

Switch to Gemini + update requirements

Browse files
app.py CHANGED
@@ -242,13 +242,11 @@ with gr.Blocks(css="""
242
  with gr.Row(equal_height=True):
243
  with gr.Column(scale=1):
244
  with gr.Group(elem_classes="box"):
245
- input_img = gr.Image(
246
  type="pil",
247
  label="📤 Upload or Capture Main Photo",
248
- sources=["upload", "webcam"], # upload OR take photo
249
- brush=True, # allow drawing/erasing
250
- crop_size=None, # force square crop (good for social media)
251
- min_width=250 # ensures it's usable on mobile
252
  )
253
 
254
  with gr.Accordion("🎨 Background Options", open=True):
 
242
  with gr.Row(equal_height=True):
243
  with gr.Column(scale=1):
244
  with gr.Group(elem_classes="box"):
245
+ input_img = gr.Image(
246
  type="pil",
247
  label="📤 Upload or Capture Main Photo",
248
+ sources=["upload", "webcam"], # works for desktop webcam & mobile camera
249
+ interactive=True
 
 
250
  )
251
 
252
  with gr.Accordion("🎨 Background Options", open=True):
results/export_20250918191721.png ADDED

Git LFS Details

  • SHA256: b50f871ade331afcb67a23cd8a32a25c4e82e8c34b154d64d0d072145e7703ae
  • Pointer size: 131 Bytes
  • Size of remote file: 667 kB
results/result_20250918191721.png ADDED

Git LFS Details

  • SHA256: b50f871ade331afcb67a23cd8a32a25c4e82e8c34b154d64d0d072145e7703ae
  • Pointer size: 131 Bytes
  • Size of remote file: 667 kB
uploads/upload_1758219439.png ADDED

Git LFS Details

  • SHA256: cd7603530191cb04179d8d3338c42f754bac5438c14b0e04b63cbabb1bb611de
  • Pointer size: 131 Bytes
  • Size of remote file: 691 kB