Switch to Gemini + update requirements
Browse files
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 |
-
|
| 246 |
type="pil",
|
| 247 |
label="📤 Upload or Capture Main Photo",
|
| 248 |
-
sources=["upload", "webcam"], #
|
| 249 |
-
|
| 250 |
-
|
| 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):
|