pcasale commited on
Commit
e943d06
·
verified ·
1 Parent(s): 42ebc03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -10
app.py CHANGED
@@ -15,16 +15,41 @@ def summarise(text):
15
 
16
  # Two example passages for quick testing
17
  example_texts = [
18
- ["Artificial intelligence has progressed rapidly over the past decade. "
19
- "New methods in deep learning have made it possible to process vast amounts of data, "
20
- "leading to significant advances in language modelling, computer vision, and reinforcement learning. "
21
- "As organisations adopt these technologies, questions emerge regarding transparency, fairness, "
22
- "and the wider societal impact of automated decision-making."],
23
-
24
- ["The Industrial Revolution transformed Europe’s economic landscape. "
25
- "Mechanised production replaced traditional craft methods, enabling factories to produce goods at a scale "
26
- "previously unimaginable. These developments shifted labour patterns, encouraged urban migration, "
27
- "and laid the foundations for modern industrial capitalism."]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  ]
29
 
30
  with gr.Blocks(title="BART Text Summariser") as demo:
 
15
 
16
  # Two example passages for quick testing
17
  example_texts = [
18
+ ["""
19
+ Over the past half-century, the relationship between technology and society has undergone a profound transformation.
20
+ The earliest digital systems were narrow in scope, expensive to maintain, and accessible only to governments and large research
21
+ institutions. Their primary function was to accelerate numerical calculations, simulate complex physical systems, and automate a
22
+ limited range of administrative tasks. By contrast, contemporary digital technologies influence almost every aspect of social,
23
+ economic, and cultural life. The proliferation of personal devices, the rise of global communication networks, and the emergence of
24
+ intelligent systems have collectively reshaped the way individuals interact with information, institutions, and one another.
25
+ A particularly significant development has been the shift from passive computation to adaptive, data-driven systems capable of learning
26
+ from examples. Machine learning, and deep learning in particular, now underpin applications ranging from medical diagnostics and financial
27
+ forecasting to translation services and autonomous vehicles. These systems exhibit performance that, in some domains,
28
+ rivals or exceeds that of trained human experts. Their growing prominence has prompted renewed interest in the ethics of automation,
29
+ including concerns regarding fairness, accountability, transparency, and the potential reinforcement of existing social inequalities.
30
+ """ ],
31
+ [""""
32
+ In recent years, debates about the future of work have intensified as automation and artificial intelligence continue to
33
+ advance at an impressive pace. Industries that once relied upon large numbers of routine, manual workers have begun adopting
34
+ sophisticated systems capable of performing complex tasks with remarkable consistency.
35
+ Manufacturers now use intelligent robotics to monitor supply chains, maintain production lines, and
36
+ identify defects in real time, while service providers increasingly rely upon algorithmic tools to streamline logistics,
37
+ customer support, and administrative processes. Although these developments promise efficiency and cost savings,
38
+ they also raise important questions about job security, professional identity, and the capacity of existing institutions
39
+ to support individuals whose roles may change or disappear. The transformation is not confined to industrial labour;
40
+ professions such as law, journalism, and medicine are also beginning to feel the effects of algorithmic decision-making,
41
+ prompting renewed discussions about the value of human judgement in an environment shaped by relentless technological acceleration.
42
+ Alongside these economic and professional considerations, attention has turned towards the broader societal implications of widespread
43
+ automation. Public discourse frequently highlights the tension between technological progress and social wellbeing, particularly in
44
+ light of concerns about privacy, data ownership, and democratic accountability. As more personal information is collected,
45
+ processed, and acted upon by automated systems, citizens increasingly seek assurances that these technologies are
46
+ deployed responsibly and transparently. Policymakers, however, often struggle to keep pace with innovation,
47
+ resulting in regulatory frameworks that are uneven, reactive, or insufficiently aligned with public expectations.
48
+ The challenge is further complicated by global inequalities: nations with limited technical infrastructure may find
49
+ themselves dependent upon systems developed elsewhere, with little influence over how those systems evolve.
50
+ These realities underscore the need for thoughtful governance, interdisciplinary dialogue, and inclusive decision-making to
51
+ ensure that the benefits of automation are shared widely rather than reserved for a narrow segment of society.
52
+ """]
53
  ]
54
 
55
  with gr.Blocks(title="BART Text Summariser") as demo: