Priyanka-Kumavat commited on
Commit
41e3df6
1 Parent(s): 38f78d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -17
app.py CHANGED
@@ -49,23 +49,28 @@ def prediction(text):
49
 
50
 
51
 
52
- EXAMPLES = [["""
53
- Maria Sharapova has basically no friends as tennis players on the WTA Tour. The Russian player has no problems in openly speaking about it and in a recent interview she said: 'I don't really hide any feelings too much.
54
- I think everyone knows this is my job here. When I'm on the courts or when I'm on the court playing, I'm a competitor and I want to beat every single person whether they're in the locker room or across the net.
55
- So I'm not the one to strike up a conversation about the weather and know that in the next few minutes I have to go and try to win a tennis match.
56
- I'm a pretty competitive girl. I say my hellos, but I'm not sending any players flowers as well. Uhm, I'm not really friendly or close to many players.
57
- I have not a lot of friends away from the courts.' When she said she is not really close to a lot of players, is that something strategic that she is doing? Is it different on the men's tour than the women's tour? 'No, not at all.
58
- I think just because you're in the same sport doesn't mean that you have to be friends with everyone just because you're categorized, you're a tennis player, so you're going to get along with tennis players.
59
- I think every person has different interests. I have friends that have completely different jobs and interests, and I've met them in very different parts of my life.
60
- I think everyone just thinks because we're tennis players we should be the greatest of friends. But ultimately tennis is just a very small part of what we do.
61
- There are so many other things that we're interested in, that we do.'
62
- """],["""The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building,
63
- and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side.
64
- During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world,
65
- a title it held for 41 years until the Chrysler Building in New York City was finished in 1930.
66
- It was the first structure to reach a height of 300 metres.
67
- Due to the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the Chrysler Building by 5.2 metres (17 ft).
68
- Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct."""]]
 
 
 
 
 
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,