hansoneze commited on
Commit
ff236b3
·
1 Parent(s): a1277da

Switch to Gemini + update requirements

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -242,13 +242,12 @@ 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.ImageEditor(
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
+ tool="editor", # ✅ gives crop tool
250
+ min_width=250
 
251
  )
252
 
253
  with gr.Accordion("🎨 Background Options", open=True):