ChancesYuan
commited on
Commit
·
307634f
1
Parent(s):
2c95c46
update
Browse files
app.py
CHANGED
@@ -12,13 +12,13 @@ with gr.Blocks() as demo:
|
|
12 |
# 多个tab
|
13 |
with gr.Tabs():
|
14 |
|
15 |
-
with gr.TabItem("E-FB15k237"):
|
16 |
title = gr.Textbox(label="Input", lines=1, placeholder="Mask triple input")
|
17 |
origin_button = gr.Button("Origin")
|
18 |
origin_output = gr.Textbox(label="Before Edit", lines=2, placeholder="")
|
19 |
|
20 |
alter_label = gr.Textbox(label="Alter Entity", lines=1, placeholder="Entity Name")
|
21 |
-
edit_button = gr.Button("Edit", elem_id="
|
22 |
|
23 |
edit_output = gr.Textbox(label="After Edit", lines=2, placeholder="")
|
24 |
|
|
|
12 |
# 多个tab
|
13 |
with gr.Tabs():
|
14 |
|
15 |
+
with gr.TabItem("E-FB15k237", css="#warning {color: red}"):
|
16 |
title = gr.Textbox(label="Input", lines=1, placeholder="Mask triple input")
|
17 |
origin_button = gr.Button("Origin")
|
18 |
origin_output = gr.Textbox(label="Before Edit", lines=2, placeholder="")
|
19 |
|
20 |
alter_label = gr.Textbox(label="Alter Entity", lines=1, placeholder="Entity Name")
|
21 |
+
edit_button = gr.Button("Edit", elem_id="warning")
|
22 |
|
23 |
edit_output = gr.Textbox(label="After Edit", lines=2, placeholder="")
|
24 |
|