Spaces:
Running
Running
flow3rdown
commited on
Commit
•
8c5d405
1
Parent(s):
a6e53ee
control layout
Browse files
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 |
-
|
18 |
-
|
|
|
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 |
-
|
23 |
-
|
24 |
-
|
25 |
submit_btn = gr.Button("Submit")
|
26 |
-
output_text = gr.Textbox(label="
|
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(
|