Switch to Gemini + update requirements
Browse files241 unmodified lines242243244245245246247248249250251248249250251252253241 unmodified lines with gr.Row(equal_height=True): with gr.Column(scale=1): with gr.Group(elem_classes="box"): input_img = gr.ImageEditor( input_img = gr.Image( type="pil", label="📤 Upload or Capture Main Photo", sources=["upload", "webcam"], # upload OR take photo brush=True, # allow drawing/erasing crop_size=None, # force square crop (good for social media) min_width=250 # ensures it's usable on mobile sources=["upload", "webcam"], # ✅ works for desktop webcam & mobile camera tool="editor", # ✅ gives crop tool min_width=250 )
with gr.Accordion("🎨 Background Options", open=True):app.py+4-5