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