Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,16 +15,41 @@ def summarise(text):
|
|
| 15 |
|
| 16 |
# Two example passages for quick testing
|
| 17 |
example_texts = [
|
| 18 |
-
["
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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:
|