Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,12 @@ EXAMPLES = [["""
|
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
71 |
outputs = [
|
72 |
gr.Textbox(lines =5,label = "Summarization of text"),
|
73 |
gr.Number(label="Word Count of given Text"),
|
@@ -80,7 +85,7 @@ demo_app = gr.Interface(
|
|
80 |
outputs= outputs,
|
81 |
title = "Text Summarization",
|
82 |
examples = EXAMPLES,
|
83 |
-
|
84 |
#cache_example = True,
|
85 |
#live = True,
|
86 |
theme = 'huggingface'
|
|
|
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 = """We are bombarded with lakhs of characters of text and information and not so much time.
|
71 |
+
Text summarization reads the whole documents, based on frequency of words and sentences it understands the
|
72 |
+
important sentences and gives us the summary of text.
|
73 |
+
We have used a pre-trained model which is a small English pipeline trained on written web text like news, comments for this demo.
|
74 |
+
This can be used in organizations that deal with lots of text documents like a law firm where the documents will be summarized in
|
75 |
+
one to two paragraph as per our needs."""
|
76 |
outputs = [
|
77 |
gr.Textbox(lines =5,label = "Summarization of text"),
|
78 |
gr.Number(label="Word Count of given Text"),
|
|
|
85 |
outputs= outputs,
|
86 |
title = "Text Summarization",
|
87 |
examples = EXAMPLES,
|
88 |
+
description = DESCRIPTION,
|
89 |
#cache_example = True,
|
90 |
#live = True,
|
91 |
theme = 'huggingface'
|