Update app.py
Browse files
app.py
CHANGED
@@ -380,8 +380,8 @@ def create_min_image_input(index, open=True, indices_state=None):
|
|
380 |
|
381 |
with gr.Column(min_width=256):
|
382 |
image = gr.Image(type="filepath", label=f"Image {index + 1}")
|
383 |
-
caption = gr.Textbox(label=f"
|
384 |
-
id_ip_checkbox = gr.Checkbox(value=True, label=f"ID or not {index + 1}", visible=
|
385 |
with gr.Row():
|
386 |
vlm_btn = gr.Button("Generate Caption", visible=False)
|
387 |
det_btn = gr.Button("Det & Seg", visible=False)
|
@@ -472,7 +472,7 @@ def cleanup(request: gr.Request):
|
|
472 |
css = """
|
473 |
#col-container {
|
474 |
margin: 0 auto;
|
475 |
-
max-width:
|
476 |
}
|
477 |
"""
|
478 |
|
@@ -497,7 +497,7 @@ if __name__ == "__main__":
|
|
497 |
det_btns.append(det_btn)
|
498 |
vlm_btns.append(vlm_btn)
|
499 |
|
500 |
-
prompt = gr.Textbox(label="Prompt",
|
501 |
gen_btn = gr.Button("Generate", variant="primary")
|
502 |
with gr.Accordion("Advanced Settings", open=False, visible=False):
|
503 |
|
|
|
380 |
|
381 |
with gr.Column(min_width=256):
|
382 |
image = gr.Image(type="filepath", label=f"Image {index + 1}")
|
383 |
+
caption = gr.Textbox(label=f"ENT{index + 1}", value="")
|
384 |
+
id_ip_checkbox = gr.Checkbox(value=True, label=f"ID or not {index + 1}", visible=False)
|
385 |
with gr.Row():
|
386 |
vlm_btn = gr.Button("Generate Caption", visible=False)
|
387 |
det_btn = gr.Button("Det & Seg", visible=False)
|
|
|
472 |
css = """
|
473 |
#col-container {
|
474 |
margin: 0 auto;
|
475 |
+
max-width: 1096px;
|
476 |
}
|
477 |
"""
|
478 |
|
|
|
497 |
det_btns.append(det_btn)
|
498 |
vlm_btns.append(vlm_btn)
|
499 |
|
500 |
+
prompt = gr.Textbox(label="Prompt", placeholder="e.g., ENT1 and ENT2")
|
501 |
gen_btn = gr.Button("Generate", variant="primary")
|
502 |
with gr.Accordion("Advanced Settings", open=False, visible=False):
|
503 |
|