Spaces:
Sleeping
Sleeping
Ashish Soni
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -46,6 +46,12 @@ with demo:
|
|
46 |
gr.Markdown(description)
|
47 |
interface = gr.Interface(fn=summarize,
|
48 |
inputs=[gr.Textbox(label="Text to Summarize", lines=15)],
|
49 |
-
outputs=[gr.Textbox(label="Result", lines=7)]
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
)
|
51 |
demo.launch()
|
|
|
46 |
gr.Markdown(description)
|
47 |
interface = gr.Interface(fn=summarize,
|
48 |
inputs=[gr.Textbox(label="Text to Summarize", lines=15)],
|
49 |
+
outputs=[gr.Textbox(label="Result", lines=7)],
|
50 |
+
examples=["""Artificial Intelligence (AI) has been a rapidly growing field over the past decade, transforming various industries such as healthcare, finance, and transportation.
|
51 |
+
One of the key areas of AI research is machine learning, which focuses on developing algorithms that allow computers to learn from and make decisions based on data.
|
52 |
+
Recent advancements in deep learning, a subset of machine learning, have led to significant breakthroughs in image and speech recognition, natural language processing, and autonomous systems.
|
53 |
+
As AI continues to evolve, it is expected to play an increasingly important role in solving complex problems, enhancing productivity, and driving innovation across different sectors."""
|
54 |
+
],
|
55 |
+
cache_examples=True
|
56 |
)
|
57 |
demo.launch()
|