ChancesYuan commited on
Commit
a8c8670
1 Parent(s): 90b5e3c
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -33,7 +33,7 @@ with gr.Blocks() as demo:
33
  )
34
 
35
  with gr.TabItem("A-FB15k237"):
36
- title = 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,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=[title, alter_label], outputs=edit_output)
45
- origin_button.click(fn=origin_preditcion, inputs=[title, alter_label], outputs=edit_output)
46
- add_button.click(fn=add_process, inputs=[title, alter_label], outputs=add_output)
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()