flow3rdown commited on
Commit
360ca92
·
1 Parent(s): 3fda9db
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -13,18 +13,19 @@ with gr.Blocks() as block:
13
  gr.HTML(TITLE)
14
 
15
  with gr.Tab("Single Analogical Reasoning"):
16
- with gr.Row():
17
  gr.Markdown(""" $(I_h, I_t) : (T_q, ?)$
18
  """)
19
- with gr.Column():
20
- head_image = gr.Image(type='pil', label="Head Image")
21
- head_ent = gr.Textbox(lines=1, label="Head Entity")
22
- with gr.Column():
23
- tail_image = gr.Image(type='pil', label="Tail Image")
24
- tail_ent = gr.Textbox(lines=1, label="Tail Entity")
25
- with gr.Column():
26
- question_text = gr.Textbox(lines=1, label="Question Name")
27
- question_ent = gr.Textbox(lines=1, label="Question Entity")
 
28
  submit_btn = gr.Button("Submit")
29
  output_text = gr.Textbox(label="Output")
30
 
 
13
  gr.HTML(TITLE)
14
 
15
  with gr.Tab("Single Analogical Reasoning"):
16
+ with gr.Column():
17
  gr.Markdown(""" $(I_h, I_t) : (T_q, ?)$
18
  """)
19
+ with gr.Row():
20
+ with gr.Column():
21
+ head_image = gr.Image(type='pil', label="Head Image")
22
+ head_ent = gr.Textbox(lines=1, label="Head Entity")
23
+ with gr.Column():
24
+ tail_image = gr.Image(type='pil', label="Tail Image")
25
+ tail_ent = gr.Textbox(lines=1, label="Tail Entity")
26
+ with gr.Column():
27
+ question_text = gr.Textbox(lines=1, label="Question Name")
28
+ question_ent = gr.Textbox(lines=1, label="Question Entity")
29
  submit_btn = gr.Button("Submit")
30
  output_text = gr.Textbox(label="Output")
31