alexnasa commited on
Commit
51a731c
·
verified ·
1 Parent(s): 17964ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -507,8 +507,8 @@ with gr.Blocks() as demo:
507
  clear_btn = gr.Button("清空输入图像")
508
  with gr.Row():
509
  with gr.Column():
510
- image_1 = gr.Image(type="filepath", label=f"Image {index + 1}")
511
- caption_1 = gr.Textbox(label=f"Caption {index + 1}", value="")
512
  id_ip_checkbox_1 = gr.Checkbox(value=False, label=f"ID or not 1", visible=True)
513
  with gr.Row():
514
  vlm_btn_1 = gr.Button("Auto Caption")
@@ -516,8 +516,8 @@ with gr.Blocks() as demo:
516
  face_btn_1 = gr.Button("Crop Face")
517
 
518
  with gr.Column():
519
- image_2 = gr.Image(type="filepath", label=f"Image {index + 1}")
520
- caption_2 = gr.Textbox(label=f"Caption {index + 1}", value="")
521
  id_ip_checkbox_2 = gr.Checkbox(value=False, label=f"ID or not 2", visible=True)
522
  with gr.Row():
523
  vlm_btn_2 = gr.Button("Auto Caption")
 
507
  clear_btn = gr.Button("清空输入图像")
508
  with gr.Row():
509
  with gr.Column():
510
+ image_1 = gr.Image(type="filepath", label=f"Image 1")
511
+ caption_1 = gr.Textbox(label=f"Caption 1", value="")
512
  id_ip_checkbox_1 = gr.Checkbox(value=False, label=f"ID or not 1", visible=True)
513
  with gr.Row():
514
  vlm_btn_1 = gr.Button("Auto Caption")
 
516
  face_btn_1 = gr.Button("Crop Face")
517
 
518
  with gr.Column():
519
+ image_2 = gr.Image(type="filepath", label=f"Image 2")
520
+ caption_2 = gr.Textbox(label=f"Caption 2", value="")
521
  id_ip_checkbox_2 = gr.Checkbox(value=False, label=f"ID or not 2", visible=True)
522
  with gr.Row():
523
  vlm_btn_2 = gr.Button("Auto Caption")