Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,11 +13,10 @@ import gradio as gr
|
|
13 |
|
14 |
gr.close_all()
|
15 |
demo = gr.Interface(fn=summarize,
|
16 |
-
inputs=[gr.Textbox(label="Text", lines=7)],
|
17 |
outputs=[gr.Textbox(label="Result", lines=5)],
|
18 |
title="Text Summarizer",
|
19 |
description="Summarize text using the `sshleifer/distilbart-cnn-12-6` model.",
|
20 |
-
examples=["The Petronas Towers (Malay: Menara Berkembar Petronas), also known as the Petronas Twin Towers and colloquially the KLCC Twin Towers, are an interlinked pair of 88-storey supertall skyscrapers in Kuala Lumpur, Malaysia, standing at 451.9 metres (1,483 feet). From 1998 to 2004, they were officially designated as the tallest buildings in the world until they were surpassed by the completion of the Taipei 101 in 2004. The Petronas Towers are the world's tallest twin skyscrapers and remained the tallest buildings in Malaysia until 2019, when they were surpassed by The Exchange 106. The Petronas Towers are a major landmark of Kuala Lumpur, along with the nearby Kuala Lumpur Tower and Merdeka 118, and are visible in many places across the city.", "Tesla, Inc. is an American multinational automotive and clean energy company headquartered in Austin, Texas, which designs, manufactures and sells electric vehicles, stationary battery energy storage devices from home to grid-scale, solar panels and solar shingles, and related products and services.Tesla was incorporated in July 2003 by Martin Eberhard and Marc Tarpenning as Tesla Motors. The company's name is a tribute to inventor and electrical engineer Nikola Tesla. In February 2004 Elon Musk joined as the company's largest shareholder and in 2008 he was named CEO. In 2008, the company began production of its first car model, the Roadster sports car, followed by the Model S sedan in 2012, the Model X SUV in 2015, the Model 3 sedan in 2017, the Model Y crossover in 2020, the Tesla Semi truck in 2022 and the Cybertruck pickup truck in 2023. The Model 3 is the all-time bestselling plug-in electric car worldwide, and in June 2021 became the first electric car to sell 1 million units globally."]
|
21 |
)
|
22 |
|
23 |
-
demo.launch(
|
|
|
13 |
|
14 |
gr.close_all()
|
15 |
demo = gr.Interface(fn=summarize,
|
16 |
+
inputs=[gr.Textbox(label="Text", lines=7, placeholder="Enter your text here...")],
|
17 |
outputs=[gr.Textbox(label="Result", lines=5)],
|
18 |
title="Text Summarizer",
|
19 |
description="Summarize text using the `sshleifer/distilbart-cnn-12-6` model.",
|
|
|
20 |
)
|
21 |
|
22 |
+
demo.launch()
|