Commit
·
d35c449
1
Parent(s):
6fc1c67
update
Browse files
app.py
CHANGED
|
@@ -17,17 +17,20 @@ with gr.Blocks() as demo:
|
|
| 17 |
with gr.Column():
|
| 18 |
input = gr.Textbox(label="Input", lines=1, placeholder="Mask triple input")
|
| 19 |
# origin_button = gr.Button("Origin")
|
|
|
|
|
|
|
| 20 |
|
| 21 |
with gr.Column():
|
| 22 |
origin_output = gr.Textbox(label="Before Edit", lines=3, placeholder="")
|
|
|
|
| 23 |
|
| 24 |
-
with gr.Row():
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
gr.Examples(
|
| 32 |
examples=[["[MASK] r1 t1", "h1"], ["[MASK] r2 t2", "h2"]],
|
| 33 |
inputs=[input, alter_label],
|
|
|
|
| 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],
|