MrOvkill commited on
Commit
a84704e
·
verified ·
1 Parent(s): 70a9dce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -119,13 +119,15 @@ with gr.Blocks() as demo:
119
  btn2 = gr.Button("submit batch")
120
  with gr.Row():
121
  with gr.Column():
122
- otp2 = gr.Textbox(label="individual batch output (left)", interactive=True)
 
123
  with gr.Column():
124
- otp3 = gr.Textbox(label="individual batch output (right)", interactive=True)
125
- with gr.Row():
 
 
 
126
  btn_scd = gr.Button("Merge Descriptions to Single Combined Description")
127
- with gr.Row():
128
- otp4 = gr.Textbox(label="batch output ( combined )", interactive=True, lines=4)
129
  btn2.click(dual_images, inputs=[im1], outputs=[otp2])
130
  btn2.click(dual_images, inputs=[im2], outputs=[otp3])
131
  btn.click(dual_images, inputs=[img], outputs=[otpt])
 
119
  btn2 = gr.Button("submit batch")
120
  with gr.Row():
121
  with gr.Column():
122
+ im1 = gr.Image(label="image 1", type='pil')
123
+ otp2 = gr.Textbox(label="individual batch output (left)", interactive=True)
124
  with gr.Column():
125
+ im2 = gr.Image(label="image 2", type='pil')
126
+ otp3 = gr.Textbox(label="individual batch output (right)", interactive=True)
127
+ with gr.Row():
128
+ otp4 = gr.Textbox(label="batch output ( combined )", interactive=True, lines=4)
129
+ with gr.Row():
130
  btn_scd = gr.Button("Merge Descriptions to Single Combined Description")
 
 
131
  btn2.click(dual_images, inputs=[im1], outputs=[otp2])
132
  btn2.click(dual_images, inputs=[im2], outputs=[otp3])
133
  btn.click(dual_images, inputs=[img], outputs=[otpt])