prithivMLmods commited on
Commit
c1e1af7
·
verified ·
1 Parent(s): 1c0541e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- output = gr.Textbox(label="Generated Caption", lines=4, show_copy_button=True)
 
 
 
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)