Switch to Gemini + update requirements
Browse files- app.py +3 -5
- results/export_20250918191721.png +3 -0
- results/result_20250918191721.png +3 -0
- uploads/upload_1758219439.png +3 -0
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 |
-
|
| 246 |
type="pil",
|
| 247 |
label="📤 Upload or Capture Main Photo",
|
| 248 |
-
sources=["upload", "webcam"], #
|
| 249 |
-
|
| 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
|
results/result_20250918191721.png
ADDED
|
Git LFS Details
|
uploads/upload_1758219439.png
ADDED
|
Git LFS Details
|