LPX55 commited on
Commit
e56f38c
·
verified ·
1 Parent(s): 454f425

Update app_local.py

Browse files
Files changed (1) hide show
  1. app_local.py +20 -21
app_local.py CHANGED
@@ -420,33 +420,32 @@ with gr.Blocks(title="Qwen Image Edit - Fast Lightning Mode w/ Batch") as demo:
420
  label="Source Image",
421
  type="pil",
422
  height=300
423
- )
 
424
  prompt = gr.Textbox(
425
  label="Edit Instructions",
426
  placeholder="e.g. Replace the background with a beach sunset...",
427
  lines=2,
428
- max_lines=4
 
 
 
 
 
 
 
 
 
 
 
 
 
429
  )
430
 
431
- # Add preset dropdown
432
- with gr.Row():
433
- preset_dropdown = gr.Dropdown(
434
- choices=get_preset_choices(),
435
- value=None,
436
- label="Preset Batch Generation",
437
- interactive=True
438
- )
439
- rewrite_toggle = gr.Checkbox(
440
- label="Enable Prompt Enhancement",
441
- value=True,
442
- interactive=True
443
- )
444
- run_button = gr.Button(
445
- "Generate Edits",
446
- variant="primary",
447
- min_width=120
448
- )
449
-
450
  with gr.Accordion("Advanced Parameters", open=False):
451
  with gr.Row():
452
  seed = gr.Slider(
 
420
  label="Source Image",
421
  type="pil",
422
  height=300
423
+ )
424
+
425
  prompt = gr.Textbox(
426
  label="Edit Instructions",
427
  placeholder="e.g. Replace the background with a beach sunset...",
428
  lines=2,
429
+ max_lines=4,
430
+ scale=2
431
+ )
432
+
433
+ preset_dropdown = gr.Dropdown(
434
+ choices=get_preset_choices(),
435
+ value=None,
436
+ label="Preset Batch Generation",
437
+ interactive=True
438
+ )
439
+ rewrite_toggle = gr.Checkbox(
440
+ label="Enable Prompt Enhancement",
441
+ value=True,
442
+ interactive=True
443
  )
444
 
445
+ run_button = gr.Button(
446
+ "Generate Edit(s)",
447
+ variant="primary"
448
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
449
  with gr.Accordion("Advanced Parameters", open=False):
450
  with gr.Row():
451
  seed = gr.Slider(