ChancesYuan commited on
Commit
8fa6796
1 Parent(s): d35c449
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -16,21 +16,14 @@ with gr.Blocks() as demo:
16
  with gr.Row():
17
  with gr.Column():
18
  input = gr.Textbox(label="Input", lines=1, placeholder="Mask triple input")
19
- # origin_button = gr.Button("Origin")
20
  alter_label = gr.Textbox(label="Alter Entity", lines=1, placeholder="Entity Name")
21
- edit_button = gr.Button("Edit", elem_id="warning")
22
 
23
  with gr.Column():
24
  origin_output = gr.Textbox(label="Before Edit", lines=3, placeholder="")
25
  edit_output = gr.Textbox(label="After Edit", lines=3, placeholder="")
26
-
27
- # with gr.Row():
28
- # with gr.Column():
29
-
30
-
31
-
32
- # with gr.Column():
33
- #
34
  gr.Examples(
35
  examples=[["[MASK] r1 t1", "h1"], ["[MASK] r2 t2", "h2"]],
36
  inputs=[input, alter_label],
 
16
  with gr.Row():
17
  with gr.Column():
18
  input = gr.Textbox(label="Input", lines=1, placeholder="Mask triple input")
19
+
20
  alter_label = gr.Textbox(label="Alter Entity", lines=1, placeholder="Entity Name")
21
+ edit_button = gr.Button("Edit")
22
 
23
  with gr.Column():
24
  origin_output = gr.Textbox(label="Before Edit", lines=3, placeholder="")
25
  edit_output = gr.Textbox(label="After Edit", lines=3, placeholder="")
26
+
 
 
 
 
 
 
 
27
  gr.Examples(
28
  examples=[["[MASK] r1 t1", "h1"], ["[MASK] r2 t2", "h2"]],
29
  inputs=[input, alter_label],