flow3rdown commited on
Commit
8c5d405
1 Parent(s): a6e53ee

control layout

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -14,16 +14,17 @@ with gr.Blocks() as block:
14
 
15
  with gr.Tab("Single Analogical Reasoning"):
16
  with gr.Row():
17
- head_image = gr.Image(type='pil', label="Head Image")
18
- head_ent = gr.Textbox(lines=1, label="Head Entity")
 
19
  with gr.Column():
20
  tail_image = gr.Image(type='pil', label="Tail Image")
21
  tail_ent = gr.Textbox(lines=1, label="Tail Entity")
22
- with gr.Column():
23
- question_text = gr.Textbox(lines=1, label="Question Entity")
24
- question_ent = gr.Textbox(lines=1, label="Question Entity")
25
  submit_btn = gr.Button("Submit")
26
- output_text = gr.Textbox(label="Answer Name")
27
 
28
  # examples=[['example01.jpg', MODELS[0], 'best'], ['example02.jpg', MODELS[0], 'best']]
29
  # ex = gr.Examples(
 
14
 
15
  with gr.Tab("Single Analogical Reasoning"):
16
  with gr.Row():
17
+ with gr.Column():
18
+ head_image = gr.Image(type='pil', label="Head Image")
19
+ head_ent = gr.Textbox(lines=1, label="Head Entity")
20
  with gr.Column():
21
  tail_image = gr.Image(type='pil', label="Tail Image")
22
  tail_ent = gr.Textbox(lines=1, label="Tail Entity")
23
+ with gr.Column():
24
+ question_text = gr.Textbox(lines=1, label="Question Name")
25
+ question_ent = gr.Textbox(lines=1, label="Question Entity")
26
  submit_btn = gr.Button("Submit")
27
+ output_text = gr.Textbox(label="Output")
28
 
29
  # examples=[['example01.jpg', MODELS[0], 'best'], ['example02.jpg', MODELS[0], 'best']]
30
  # ex = gr.Examples(