Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -229,7 +229,7 @@ def infer(
|
|
| 229 |
|
| 230 |
processed_subjects = []
|
| 231 |
if product_image:
|
| 232 |
-
image = remove_background_from_image(
|
| 233 |
|
| 234 |
# Always remove alpha channels to ensure RGB format
|
| 235 |
image = remove_alpha_channel(image)
|
|
@@ -266,7 +266,7 @@ css = '''#col-container { max-width: 1000px; margin: 0 auto; }
|
|
| 266 |
with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
| 267 |
with gr.Column(elem_id="col-container"):
|
| 268 |
gr.Markdown("## Qwen Image Edit — Product Fusion")
|
| 269 |
-
gr.Markdown(""" Qwen Image Edit 2509 ✨ Using [dx8152's Qwen-Image-Edit-2509 Fusion LoRA](https://huggingface.co/dx8152/Qwen-Image-Edit-2509-Fusion) and [lightx2v Qwen-Image-Lightning LoRA]() for 4-step inference 💨 """ )
|
| 270 |
with gr.Row():
|
| 271 |
with gr.Column():
|
| 272 |
with gr.Row():
|
|
|
|
| 229 |
|
| 230 |
processed_subjects = []
|
| 231 |
if product_image:
|
| 232 |
+
image = remove_background_from_image(product_image)
|
| 233 |
|
| 234 |
# Always remove alpha channels to ensure RGB format
|
| 235 |
image = remove_alpha_channel(image)
|
|
|
|
| 266 |
with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
| 267 |
with gr.Column(elem_id="col-container"):
|
| 268 |
gr.Markdown("## Qwen Image Edit — Product Fusion")
|
| 269 |
+
gr.Markdown(""" Seamlessy blend products onto backgrounds with Qwen Image Edit 2509 ✨ Using [dx8152's Qwen-Image-Edit-2509 Fusion LoRA](https://huggingface.co/dx8152/Qwen-Image-Edit-2509-Fusion) and [lightx2v Qwen-Image-Lightning LoRA]() for 4-step inference 💨 """ )
|
| 270 |
with gr.Row():
|
| 271 |
with gr.Column():
|
| 272 |
with gr.Row():
|