Spaces:
Runtime error
Runtime error
Commit
·
360ca92
1
Parent(s):
3fda9db
test
Browse files
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.
|
| 17 |
gr.Markdown(""" $(I_h, I_t) : (T_q, ?)$
|
| 18 |
""")
|
| 19 |
-
with gr.
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 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 |
|