Commit
·
3fae30f
1
Parent(s):
42a5ea2
update
Browse files
app.py
CHANGED
|
@@ -40,12 +40,15 @@ with gr.Blocks() as demo:
|
|
| 40 |
)
|
| 41 |
|
| 42 |
with gr.TabItem("A-FB15k237"):
|
| 43 |
-
|
|
|
|
|
|
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
|
| 48 |
-
|
|
|
|
| 49 |
|
| 50 |
origin_button.click(fn=origin_preditcion, inputs=[input, alter_label], outputs=origin_output)
|
| 51 |
edit_button.click(fn=edit_process, inputs=[input, alter_label], outputs=edit_output)
|
|
|
|
| 40 |
)
|
| 41 |
|
| 42 |
with gr.TabItem("A-FB15k237"):
|
| 43 |
+
with gr.Row():
|
| 44 |
+
with gr.Column():
|
| 45 |
+
input = gr.Textbox(label="Input", lines=1, placeholder="New triple input")
|
| 46 |
|
| 47 |
+
alter_label = gr.Textbox(label="Head/Tail", lines=1, placeholder="1:head / 0:tail")
|
| 48 |
+
add_button = gr.Button("Add")
|
| 49 |
|
| 50 |
+
with gr.Row():
|
| 51 |
+
add_output = gr.Textbox(label="Add Results", lines=2, placeholder="")
|
| 52 |
|
| 53 |
origin_button.click(fn=origin_preditcion, inputs=[input, alter_label], outputs=origin_output)
|
| 54 |
edit_button.click(fn=edit_process, inputs=[input, alter_label], outputs=edit_output)
|