Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,10 @@ with gr.Blocks(theme="bethecloud/storj_theme", css=css) as demo:
|
|
110 |
with gr.Row():
|
111 |
image_input = gr.Image(label="Upload Image", type="pil")
|
112 |
model_choice = gr.Radio(["Base", "Large"], label="Model Choice", value="Base")
|
113 |
-
|
|
|
|
|
|
|
114 |
generate_btn = gr.Button("Generate Caption",
|
115 |
elem_classes="submit-btn")
|
116 |
generate_btn.click(fn=describe_image, inputs=[image_input, model_choice], outputs=output)
|
|
|
110 |
with gr.Row():
|
111 |
image_input = gr.Image(label="Upload Image", type="pil")
|
112 |
model_choice = gr.Radio(["Base", "Large"], label="Model Choice", value="Base")
|
113 |
+
|
114 |
+
with gr.Column(elem_classes="canvas-output"):
|
115 |
+
output = gr.Textbox(label="Generated Caption", lines=4, show_copy_button=True)
|
116 |
+
|
117 |
generate_btn = gr.Button("Generate Caption",
|
118 |
elem_classes="submit-btn")
|
119 |
generate_btn.click(fn=describe_image, inputs=[image_input, model_choice], outputs=output)
|