Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ with gr.Blocks() as demo:
|
|
| 105 |
with gr.Column():
|
| 106 |
image_input = gr.Image(type="pil")
|
| 107 |
text_input = gr.Textbox(label="Input a list of labels, example:['a','b','c']")
|
| 108 |
-
text_type = gr.Textbox(label="form [short, long, box] select", value="
|
| 109 |
run_button = gr.Button("Run Retrieval", visible=True)
|
| 110 |
with gr.Column():
|
| 111 |
fg_output = gr.Label(label="FG-CLIP 2 Output", num_top_classes=11)
|
|
@@ -133,8 +133,6 @@ with gr.Blocks() as demo:
|
|
| 133 |
gr.Examples(
|
| 134 |
examples=examples,
|
| 135 |
inputs=[image_input, text_input, text_type],
|
| 136 |
-
outputs=fg_output,
|
| 137 |
-
fn=infer,
|
| 138 |
)
|
| 139 |
run_button.click(fn=infer, inputs=[image_input, text_input, text_type], outputs=fg_output)
|
| 140 |
|
|
|
|
| 105 |
with gr.Column():
|
| 106 |
image_input = gr.Image(type="pil")
|
| 107 |
text_input = gr.Textbox(label="Input a list of labels, example:['a','b','c']")
|
| 108 |
+
text_type = gr.Textbox(label="form [short, long, box] select", value="long")
|
| 109 |
run_button = gr.Button("Run Retrieval", visible=True)
|
| 110 |
with gr.Column():
|
| 111 |
fg_output = gr.Label(label="FG-CLIP 2 Output", num_top_classes=11)
|
|
|
|
| 133 |
gr.Examples(
|
| 134 |
examples=examples,
|
| 135 |
inputs=[image_input, text_input, text_type],
|
|
|
|
|
|
|
| 136 |
)
|
| 137 |
run_button.click(fn=infer, inputs=[image_input, text_input, text_type], outputs=fg_output)
|
| 138 |
|