fffiloni commited on
Commit
8f36174
1 Parent(s): afc2656

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -61,10 +61,12 @@ with gr.Blocks(css=css) as demo:
61
  Upload an image, get a story !
62
  """
63
  )
64
- image_in = gr.Image(label="Image input", type="filepath")
65
- submit_btn = gr.Button('Sumbit')
66
- caption = gr.Textbox(label="Generated Caption")
67
- story = gr.Textbox(label="generated Story")
 
 
68
  submit_btn.click(fn=infer, inputs=[image_in], outputs=[caption, story])
69
 
70
  demo.queue().launch()
 
61
  Upload an image, get a story !
62
  """
63
  )
64
+ with gr.Row():
65
+ with gr.Column():
66
+ image_in = gr.Image(label="Image input", type="filepath")
67
+ submit_btn = gr.Button('Sumbit')
68
+ caption = gr.Textbox(label="Generated Caption")
69
+ story = gr.Textbox(label="generated Story")
70
  submit_btn.click(fn=infer, inputs=[image_in], outputs=[caption, story])
71
 
72
  demo.queue().launch()