update app
Browse files
app.py
CHANGED
|
@@ -119,7 +119,7 @@ with gr.Blocks() as demo:
|
|
| 119 |
with gr.Column():
|
| 120 |
model_choice = gr.Radio(["Florence-2-base", "Florence-2-large"], label="Model Choice", value="Florence-2-base")
|
| 121 |
with gr.Row():
|
| 122 |
-
output = gr.Textbox(label="Generated Caption", lines=4,
|
| 123 |
# Connect the button to the function
|
| 124 |
generate_btn.click(fn=describe_image, inputs=[image_input, model_choice], outputs=output)
|
| 125 |
|
|
|
|
| 119 |
with gr.Column():
|
| 120 |
model_choice = gr.Radio(["Florence-2-base", "Florence-2-large"], label="Model Choice", value="Florence-2-base")
|
| 121 |
with gr.Row():
|
| 122 |
+
output = gr.Textbox(label="Generated Caption", lines=4, interactive=True)
|
| 123 |
# Connect the button to the function
|
| 124 |
generate_btn.click(fn=describe_image, inputs=[image_input, model_choice], outputs=output)
|
| 125 |
|