Spaces:
Runtime error
Runtime error
Priyanka-Kumavat
commited on
Commit
•
41e3df6
1
Parent(s):
38f78d1
Update app.py
Browse files
app.py
CHANGED
@@ -49,23 +49,28 @@ def prediction(text):
|
|
49 |
|
50 |
|
51 |
|
52 |
-
EXAMPLES = [["""
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
|
|
|
|
|
|
|
|
|
|
69 |
|
70 |
DESCRIPTION = """This Hugging Face's Document Summarization app utilizes a pre-trained model trained on web text to quickly and effectively condense lengthy documents
|
71 |
into concise one to two-paragraph summaries. This is invaluable for organizations handling vast volumes of text, such as law firms,
|
|
|
49 |
|
50 |
|
51 |
|
52 |
+
EXAMPLES = [["""What type of language is Python? Python is an interpreted, object-oriented, high-level programming language with dynamic semantics developed by
|
53 |
+
Guido van Rossum. It was originally released in 1991. Designed to be easy as well as fun, the name "Python" is a nod to the British comedy group Monty Python.
|
54 |
+
Python has a reputation as a beginner-friendly language, replacing Java as the most widely used introductory language because it handles much of the complexity
|
55 |
+
for the user, allowing beginners to focus on fully grasping programming concepts rather than minute details. Python is used for server-side web development,
|
56 |
+
software development, mathematics, and system scripting, and is popular for Rapid Application Development and as a scripting or glue language to tie existing
|
57 |
+
components because of its high-level, built-in data structures, dynamic typing, and dynamic binding. Program maintenance costs are reduced with Python due to
|
58 |
+
the easily learned syntax and emphasis on readability. Additionally, Python's support of modules and packages facilitates modular programs and reuse of code.
|
59 |
+
Python is an open source community language, so numerous independent programmers are continually building libraries and functionality for it.
|
60 |
+
"""],["""Machine learning is an application of artificial intelligence that uses statistical techniques to enable computers to learn and make decisions without
|
61 |
+
being explicitly programmed. It is predicated on the notion that computers can learn from data, spot patterns, and make judgments with little assistance from humans.
|
62 |
+
It is a subset of Artificial Intelligence. It is the study of making machines more human-like in their behavior and decisions by giving them the ability to learn and
|
63 |
+
develop their own programs. This is done with minimum human intervention, i.e., no explicit programming. The learning process is automated and improved based on
|
64 |
+
the experiences of the machines throughout the process.Good quality data is fed to the machines, and different algorithms are used to build ML models to train the
|
65 |
+
machines on this data. The choice of algorithm depends on the type of data at hand and the type of activity that needs to be automated. """],["""Natural language processing (NLP)
|
66 |
+
refers to the branch of computer science—and more specifically, the branch of artificial intelligence or AI—concerned with giving computers the ability to understand
|
67 |
+
text and spoken words in much the same way human beings can. NLP combines computational linguistics—rule-based modeling of human language—with statistical, machine
|
68 |
+
learning, and deep learning models. Together, these technologies enable computers to process human language in the form of text or voice data and to ‘understand’
|
69 |
+
its full meaning, complete with the speaker or writer’s intent and sentiment. NLP drives computer programs that translate text from one language to another,
|
70 |
+
respond to spoken commands, and summarize large volumes of text rapidly—even in real time. There’s a good chance you’ve interacted with NLP in the form of
|
71 |
+
voice-operated GPS systems, digital assistants, speech-to-text dictation software, customer service chatbots, and other consumer conveniences.
|
72 |
+
But NLP also plays a growing role in enterprise solutions that help streamline business operations, increase employee productivity, and simplify mission-critical
|
73 |
+
business processes."""]]
|
74 |
|
75 |
DESCRIPTION = """This Hugging Face's Document Summarization app utilizes a pre-trained model trained on web text to quickly and effectively condense lengthy documents
|
76 |
into concise one to two-paragraph summaries. This is invaluable for organizations handling vast volumes of text, such as law firms,
|