Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,12 +27,13 @@ def main():
|
|
| 27 |
# Left column: Radio buttons for summarizer choice
|
| 28 |
with col1:
|
| 29 |
radio_options = ['Abstractive', 'Extractive', 'Keyword Extraction', 'Keyphrase Extraction']
|
| 30 |
-
help_text =
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
| 36 |
radio_selection = st.radio("Choose type of summarizer:", radio_options, help=help_text)
|
| 37 |
|
| 38 |
# Middle column: Text input and File uploader
|
|
|
|
| 27 |
# Left column: Radio buttons for summarizer choice
|
| 28 |
with col1:
|
| 29 |
radio_options = ['Abstractive', 'Extractive', 'Keyword Extraction', 'Keyphrase Extraction']
|
| 30 |
+
help_text = "Abstractive: Abstractive summarization generates a summary that may contain words not present in the original text. " \
|
| 31 |
+
"It uses a fine-tuned model on BART-large-CNN.<br>" \
|
| 32 |
+
"Extractive: Extractive summarization selects and extracts sentences or phrases directly from the original text to create a summary using the TextRank algorithm.<br>" \
|
| 33 |
+
"Keyword Extraction: Keyword extraction identifies and extracts important keywords or terms from the text using the Rake algorithm. " \
|
| 34 |
+
"These keywords can be used for various purposes such as content analysis and SEO.<br>" \
|
| 35 |
+
"Keyphrase Extraction: 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."
|
| 36 |
+
|
| 37 |
radio_selection = st.radio("Choose type of summarizer:", radio_options, help=help_text)
|
| 38 |
|
| 39 |
# Middle column: Text input and File uploader
|