Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -47,14 +47,6 @@ def encoder_decoder(text):
|
|
47 |
generated_ids = model.generate(input_ids)
|
48 |
generated_text = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
|
49 |
return generated_text
|
50 |
-
|
51 |
-
|
52 |
-
#Input text
|
53 |
-
|
54 |
-
# 1. Kathmandu, Nepal's capital, is set in a valley surrounded by the Himalayan mountains. At the heart of the old city’s mazelike alleys is Durbar Square, which becomes frenetic during Indra Jatra, a religious festival featuring masked dances. Many of the city's historic sites were damaged or destroyed by a 2015 earthquake. Durbar Square's palace, Hanuman Dhoka, and Kasthamandap, a wooden Hindu temple, are being rebuilt. Kathmandu and adjacent cities are composed of neighbourhoods, which are utilized quite extensively and more familiar among locals. However, administratively the city is divided into 32 wards, numbered from 1 to 32. Earlier, there were 35 wards which made it the metropolitan city with the largest number of the wards. Balendra Shah (Balen) has been elected as the new mayor of Kathmandu.Kathmandu Municipal Corporation (KMC) is the chief nodal agency for the administration of Kathmandu. The Municipality of Kathmandu was upgraded to a metropolitan city in 1995.Kathmandu's urban cosmopolitan character has made it the most populous city in Nepal.Metropolitan Kathmandu is divided into five sectors: the Central Sector, the East Sector, the North Sector, the City Core and the West Sector. For civic administration, the city is further divided into 35 administrative wards. The Council administers the Metropolitan area of Kathmandu city through its 177 elected representatives and 20 nominated members. It holds biannual meetings to review, process and approve the annual budget and make major policy decisions.he ancient trade route between India and Tibet that passed through Kathmandu enabled a fusion of artistic and architectural traditions from other cultures to be amalgamated with local art and architecture.The monuments of Kathmandu City have been influenced over the centuries by Hindu and Buddhist religious practices. The architectural treasure of the Kathmandu valley has been categorized under the well-known seven groups of heritage monuments and buildings. In 2006 UNESCO declared these seven groups of monuments as a World Heritage Site (WHS). The seven monuments zones cover an area of 189 hectares (470 acres), with the buffer zone extending to 2,394 hectares (5,920 acres). The Seven Monument Zones inscribed originally in 1979 and with a minor modification in 2006 are the Durbar squares of Hanuman Dhoka, Patan and Bhaktapur, the Hindu temples of Pashupatinath and Changunarayan, the Buddhist stupas of Swayambhunath and Boudhanath.
|
55 |
-
# 2. Indian heritage dates back several centuries. It is vast and vibrant.Flora and fauna, music, architecture, classical dance, and the innate secular philosophy of its people are the highlights of India's treasure. Ever since the beginning, we have preserved culture and tradition beautifully for our upcoming generations. We can never forget our tradition and culture as they are embedded in us and are an inseparable part of our lives no matter how far we plan to reach and how much we have progressed in all these years.We take pride in our heritage and we also have a magnification of monumental Heritage. Most of the beautiful edifices exhibit a royal past that was built by the rulers and still stands tall.As the number of religions is quite innumerable in India so does the diversity and so does the heritage sites.One will find various historical heritage sites in every corner of India (basically every state). These heritage sites are built decades ago and still stand alive with all the significance. These historical monuments and sites are proof of how India witnessed the footsteps of various religions, various dynasties, and traditions.
|
56 |
-
# 3. Machine learning is an important component of the growing field of data science. Through the use of statistical methods, algorithms are trained to make classifications or predictions, and to uncover key insights in data mining projects. These insights subsequently drive decision making within applications and businesses, ideally impacting key growth metrics. As big data continues to expand and grow, the market demand for data scientists will increase. They will be required to help identify the most relevant business questions and the data to answer them.Machine learning algorithms are typically created using frameworks that accelerate solution development, such as TensorFlow and PyTorch.
|
57 |
-
|
58 |
|
59 |
# Result
|
60 |
def result(summary):
|
|
|
47 |
generated_ids = model.generate(input_ids)
|
48 |
generated_text = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
|
49 |
return generated_text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
# Result
|
52 |
def result(summary):
|