Update app.py
Browse files
app.py
CHANGED
|
@@ -1024,10 +1024,10 @@ with gr.Blocks(css=css, theme=purple_theme) as demo:
|
|
| 1024 |
run_btn = gr.Button("\U0001F5D1\uFE0F Remove Object", variant="primary", size="lg")
|
| 1025 |
|
| 1026 |
with gr.Column(scale=1):
|
| 1027 |
-
result = gr.Image(label="Output Image", height=
|
| 1028 |
-
preview = gr.Image(label="Input Sent to Model (with red boxes)", height=
|
| 1029 |
|
| 1030 |
-
with gr.Accordion("Advanced Settings", open=
|
| 1031 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
| 1032 |
randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
|
| 1033 |
with gr.Row():
|
|
@@ -1037,16 +1037,6 @@ with gr.Blocks(css=css, theme=purple_theme) as demo:
|
|
| 1037 |
height_slider = gr.Slider(label="Height", minimum=256, maximum=2048, step=8, value=1024)
|
| 1038 |
width_slider = gr.Slider(label="Width", minimum=256, maximum=2048, step=8, value=1024)
|
| 1039 |
|
| 1040 |
-
with gr.Accordion("About", open=False):
|
| 1041 |
-
gr.Markdown(
|
| 1042 |
-
"*QIE-Object-Remover-Bbox* by "
|
| 1043 |
-
"[prithivMLmods](https://huggingface.co/prithivMLmods). "
|
| 1044 |
-
"Adapter: [QIE-2511-Object-Remover-v2]"
|
| 1045 |
-
"(https://huggingface.co/prithivMLmods/QIE-2511-Object-Remover-v2). "
|
| 1046 |
-
"More adapters \u2192 [Qwen-Image-Edit-LoRAs]"
|
| 1047 |
-
"(https://huggingface.co/models?other=base_model:adapter:Qwen/Qwen-Image-Edit-2509)."
|
| 1048 |
-
)
|
| 1049 |
-
|
| 1050 |
demo.load(fn=None, js=bbox_drawer_js)
|
| 1051 |
|
| 1052 |
run_btn.click(
|
|
|
|
| 1024 |
run_btn = gr.Button("\U0001F5D1\uFE0F Remove Object", variant="primary", size="lg")
|
| 1025 |
|
| 1026 |
with gr.Column(scale=1):
|
| 1027 |
+
result = gr.Image(label="Output Image", height=460)
|
| 1028 |
+
preview = gr.Image(label="Input Sent to Model (with red boxes)", height=400)
|
| 1029 |
|
| 1030 |
+
with gr.Accordion("Advanced Settings", open=False, Visible=False):
|
| 1031 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
| 1032 |
randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
|
| 1033 |
with gr.Row():
|
|
|
|
| 1037 |
height_slider = gr.Slider(label="Height", minimum=256, maximum=2048, step=8, value=1024)
|
| 1038 |
width_slider = gr.Slider(label="Width", minimum=256, maximum=2048, step=8, value=1024)
|
| 1039 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1040 |
demo.load(fn=None, js=bbox_drawer_js)
|
| 1041 |
|
| 1042 |
run_btn.click(
|