Commit ·
a8c8670
1
Parent(s): 90b5e3c
update
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ with gr.Blocks() as demo:
|
|
| 33 |
)
|
| 34 |
|
| 35 |
with gr.TabItem("A-FB15k237"):
|
| 36 |
-
|
| 37 |
|
| 38 |
alter_label = gr.Textbox(label="Head/Tail", lines=1, placeholder="1:head / 0:tail")
|
| 39 |
add_button = gr.Button("Add")
|
|
@@ -41,8 +41,8 @@ with gr.Blocks() as demo:
|
|
| 41 |
add_output = gr.Textbox(label="Add Results", lines=2, placeholder="")
|
| 42 |
|
| 43 |
|
| 44 |
-
edit_button.click(fn=edit_process, inputs=[
|
| 45 |
-
origin_button.click(fn=origin_preditcion, inputs=[
|
| 46 |
-
add_button.click(fn=add_process, inputs=[
|
| 47 |
|
| 48 |
demo.launch()
|
|
|
|
| 33 |
)
|
| 34 |
|
| 35 |
with gr.TabItem("A-FB15k237"):
|
| 36 |
+
input = gr.Textbox(label="Input", lines=1, placeholder="New triple input")
|
| 37 |
|
| 38 |
alter_label = gr.Textbox(label="Head/Tail", lines=1, placeholder="1:head / 0:tail")
|
| 39 |
add_button = gr.Button("Add")
|
|
|
|
| 41 |
add_output = gr.Textbox(label="Add Results", lines=2, placeholder="")
|
| 42 |
|
| 43 |
|
| 44 |
+
edit_button.click(fn=edit_process, inputs=[input, alter_label], outputs=edit_output)
|
| 45 |
+
origin_button.click(fn=origin_preditcion, inputs=[input, alter_label], outputs=edit_output)
|
| 46 |
+
add_button.click(fn=add_process, inputs=[input, alter_label], outputs=add_output)
|
| 47 |
|
| 48 |
demo.launch()
|