alexnasa commited on
Commit
922ce8c
·
verified ·
1 Parent(s): cf9c218

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -390,8 +390,8 @@ def create_min_image_input(index, open=True, indices_state=None):
390
  with gr.Column(min_width=256):
391
  image = gr.Image(type="filepath", label=f"Image {index + 1}")
392
  caption = gr.Textbox(label=f"ENT{index + 1} Prompt", value="")
393
- face_btn = gr.Button("Crop Face")
394
  det_btn = gr.Button("Crop to Prompt")
 
395
  id_ip_checkbox = gr.Checkbox(value=True, label=f"ID or not {index + 1}", visible=False)
396
  with gr.Row():
397
  vlm_btn = gr.Button("Generate Caption", visible=False)
@@ -514,7 +514,7 @@ if __name__ == "__main__":
514
 
515
  prompt = gr.Textbox(label="Prompt", placeholder="e.g., ENT1 and ENT2")
516
  gen_btn = gr.Button("Generate", variant="primary")
517
- with gr.Accordion("Advanced Settings", open=False, visible=False):
518
 
519
  seed = gr.Number(value=42, label="Seed", info="")
520
 
 
390
  with gr.Column(min_width=256):
391
  image = gr.Image(type="filepath", label=f"Image {index + 1}")
392
  caption = gr.Textbox(label=f"ENT{index + 1} Prompt", value="")
 
393
  det_btn = gr.Button("Crop to Prompt")
394
+ face_btn = gr.Button("Crop to Face")
395
  id_ip_checkbox = gr.Checkbox(value=True, label=f"ID or not {index + 1}", visible=False)
396
  with gr.Row():
397
  vlm_btn = gr.Button("Generate Caption", visible=False)
 
514
 
515
  prompt = gr.Textbox(label="Prompt", placeholder="e.g., ENT1 and ENT2")
516
  gen_btn = gr.Button("Generate", variant="primary")
517
+ with gr.Accordion("Advanced Settings", open=False):
518
 
519
  seed = gr.Number(value=42, label="Seed", info="")
520