prithivMLmods commited on
Commit
3e36430
·
verified ·
1 Parent(s): 4113666

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -927,7 +927,7 @@ bbox_drawer_js = r"""
927
  """
928
 
929
 
930
- with gr.Blocks(css=css, theme=purple_theme) as demo:
931
  gr.Markdown("# **QIE-Object-Remover-Bbox**", elem_id="main-title")
932
  gr.Markdown(
933
  "Perform diverse image edits using a specialized [LoRA](https://huggingface.co/prithivMLmods/QIE-2511-Object-Remover-v2). "
@@ -939,7 +939,6 @@ with gr.Blocks(css=css, theme=purple_theme) as demo:
939
  with gr.Row():
940
  with gr.Column(scale=1):
941
 
942
- # --- We replace the visible gr.Image upload with a hidden textbox for the Base64 data ---
943
  hidden_image_b64 = gr.Textbox(
944
  elem_id="hidden-image-b64",
945
  elem_classes="hidden-input",
@@ -1027,7 +1026,7 @@ with gr.Blocks(css=css, theme=purple_theme) as demo:
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():
 
927
  """
928
 
929
 
930
+ with gr.Blocks() as demo:
931
  gr.Markdown("# **QIE-Object-Remover-Bbox**", elem_id="main-title")
932
  gr.Markdown(
933
  "Perform diverse image edits using a specialized [LoRA](https://huggingface.co/prithivMLmods/QIE-2511-Object-Remover-v2). "
 
939
  with gr.Row():
940
  with gr.Column(scale=1):
941
 
 
942
  hidden_image_b64 = gr.Textbox(
943
  elem_id="hidden-image-b64",
944
  elem_classes="hidden-input",
 
1026
  result = gr.Image(label="Output Image", height=460)
1027
  preview = gr.Image(label="Input Sent to Model (with red boxes)", height=400)
1028
 
1029
+ with gr.Accordion("Advanced Settings", open=False, visible=False):
1030
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
1031
  randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
1032
  with gr.Row():