From f38f2e0bc454e913449a5a2183f6a4d5fd530d29 Mon Sep 17 00:00:00 2001 From: songw Date: Mon, 17 Apr 2023 15:51:32 +0800 Subject: [PATCH] modify app.py --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 51e14b9..d093283 100644 --- a/app.py +++ b/app.py @@ -33,7 +33,8 @@ with gr.Blocks(theme=theme, css="footer {visibility: hidden}") as demo: box2 = gr.Textbox(label="文本") button.click(fn=summarize, inputs=box1, outputs=box2) - examples = gr.Examples(examples=["The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930. It was the first structure to reach a height of 300 metres. Due to the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the Chrysler Building by 5.2 metres (17 ft). Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct."], inputs=[box1]) + clear.click(lambda x: gr.update(value=''), [], [box1]) + examples = gr.Examples(examples=["The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930. It was the first structure to reach a height of 300 metres. Due to the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the Chrysler Building by 5.2 metres (17 ft). Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct."], inputs=[box1], label="例子") if __name__ == "__main__":