Mr-Vicky-01 commited on
Commit
07ede97
1 Parent(s): 3a2439b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -11,9 +11,7 @@ def generate_summary(text):
11
  summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
12
  return summary
13
 
14
- examples = [
15
- ["The rise of artificial intelligence (AI) has revolutionized various industries, including healthcare, finance, and transportation. AI technologies such as machine learning and natural language processing have enabled computers to perform tasks that were once thought to be exclusive to humans. In healthcare, AI is being used to diagnose diseases, personalize treatment plans, and predict patient outcomes. In finance, AI algorithms analyze market trends, manage portfolios, and detect fraudulent activities. Additionally, AI-powered autonomous vehicles are poised to transform transportation by enhancing safety and efficiency on the roads. Overall, the widespread adoption of AI is reshaping the way we live and work, with profound implications for society in the coming years."],
16
- ]
17
 
18
  demo = gr.Interface(fn=generate_summary, inputs='text',outputs='text',title='Text Summarization', examples=examples)
19
  demo.launch(debug=True,share=True)
 
11
  summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
12
  return summary
13
 
14
+ examples = [["In the dynamic landscape of the 21st century, artificial intelligence (AI) has emerged as a cornerstone technology driving unprecedented innovation across diverse domains. From healthcare to agriculture, finance to manufacturing, AI's transformative impact is palpable. In healthcare, AI-driven diagnostic systems analyze complex medical data, empowering clinicians with insights for precise treatment planning and disease management. Moreover, AI-powered predictive analytics models forecast patient outcomes, optimizing resource allocation and enhancing healthcare delivery. In agriculture, AI-enabled drones and sensors monitor crop health, soil conditions, and weather patterns, revolutionizing farming practices for improved yield and sustainability. The financial sector harnesses AI algorithms for fraud detection, risk assessment, and algorithmic trading, enhancing market efficiency and mitigating financial risks. In manufacturing, AI-driven robotics and automation systems optimize production processes, increasing productivity and quality while reducing operational costs. Additionally, AI-powered virtual assistants and chatbots revolutionize customer service, providing personalized interactions and seamless support across digital platforms. As AI technologies evolve, ethical considerations surrounding data privacy, algorithmic bias, and job displacement come to the fore, necessitating robust governance frameworks and ethical guidelines. Nevertheless, the transformative potential of AI to drive innovation, enhance productivity, and improve human well-being remains unparalleled, heralding a future where intelligent systems augment human capabilities and redefine the possibilities of tomorrow."]]
 
 
15
 
16
  demo = gr.Interface(fn=generate_summary, inputs='text',outputs='text',title='Text Summarization', examples=examples)
17
  demo.launch(debug=True,share=True)