ChancesYuan
commited on
Commit
•
f889cdb
1
Parent(s):
a59c7e0
update
Browse files
app.py
CHANGED
@@ -50,6 +50,14 @@ with gr.Blocks() as demo:
|
|
50 |
with gr.Column():
|
51 |
add_output = gr.Textbox(label="Add Results", lines=5, placeholder="")
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
origin_button.click(fn=origin_preditcion, inputs=[input, alter_label], outputs=origin_output)
|
54 |
edit_button.click(fn=edit_process, inputs=[input, alter_label], outputs=edit_output)
|
55 |
add_button.click(fn=add_process, inputs=[input, alter_label], outputs=add_output)
|
|
|
50 |
with gr.Column():
|
51 |
add_output = gr.Textbox(label="Add Results", lines=5, placeholder="")
|
52 |
|
53 |
+
gr.Examples(
|
54 |
+
examples=[["h1 r1 t1", "1"], ["h2 r2 t2", "1"]],
|
55 |
+
inputs=[input, alter_label],
|
56 |
+
outputs=add_output,
|
57 |
+
fn=add_process,
|
58 |
+
cache_examples=True,
|
59 |
+
)
|
60 |
+
|
61 |
origin_button.click(fn=origin_preditcion, inputs=[input, alter_label], outputs=origin_output)
|
62 |
edit_button.click(fn=edit_process, inputs=[input, alter_label], outputs=edit_output)
|
63 |
add_button.click(fn=add_process, inputs=[input, alter_label], outputs=add_output)
|