Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,14 @@ def main():
|
|
27 |
# Left column: Radio buttons for summarizer choice
|
28 |
with col1:
|
29 |
radio_options = ['Abstractive', 'Extractive', 'Keyword Extraction', 'Keyphrase Extraction']
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
# Middle column: Text input and File uploader
|
33 |
with col2:
|
34 |
user_input = st.text_area("Enter your text here:")
|
|
|
27 |
# Left column: Radio buttons for summarizer choice
|
28 |
with col1:
|
29 |
radio_options = ['Abstractive', 'Extractive', 'Keyword Extraction', 'Keyphrase Extraction']
|
30 |
+
help_text = [
|
31 |
+
"Abstractive summarization generates a summary that may contain words not present in the original text. It uses a fine-tuned model on BART-large-CNN.",
|
32 |
+
"Extractive summarization selects and extracts sentences or phrases directly from the original text to create a summary using the TextRank algorithm.",
|
33 |
+
"Keyword extraction identifies and extracts important keywords or terms from the text using the Rake algorithm. These keywords can be used for various purposes such as content analysis and SEO.",
|
34 |
+
"Keyphrase extraction is similar to keyword extraction but focuses on identifying multi-word phrases or expressions that are significant in the text using the Rake algorithm."
|
35 |
+
]
|
36 |
+
radio_selection = st.radio("Choose type of summarizer:", radio_options, help=help_text)
|
37 |
+
|
38 |
# Middle column: Text input and File uploader
|
39 |
with col2:
|
40 |
user_input = st.text_area("Enter your text here:")
|