EE21 commited on
Commit
3dd36dd
1 Parent(s): bfd0b51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
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
- "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
 
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