EE21 commited on
Commit
8cff1a5
1 Parent(s): 8ba527e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,7 +41,7 @@ def main():
41
 
42
  # Left column: Radio buttons for summarizer choice
43
  with col1:
44
- radio_options = ["Abstractive (T5)", "Abstractive (LED)", 'Abstractive (BART Fine-tuned)', "Abstractive (BART-large-CNN)", 'Extractive (TextRank)',
45
  "Extractive (Latent Semantic Analysis)", 'Keyphrase Extraction (RAKE)', 'Keyword Extraction (RAKE)']
46
 
47
  help_text = "Abstractive: Abstractive summarization generates a summary that may contain words not present in the original text. " \
@@ -98,7 +98,7 @@ def main():
98
  st.session_state.summary = summary
99
 
100
  # Perform extractive summarization
101
- if radio_selection == "Abstractive (T5)":
102
  summary = summarize_with_t5(file_content)
103
  st.session_state.summary = summary
104
 
 
41
 
42
  # Left column: Radio buttons for summarizer choice
43
  with col1:
44
+ radio_options = ["Abstractive (LongT5)", "Abstractive (LED)", 'Abstractive (BART Fine-tuned)', "Abstractive (BART-large-CNN)", 'Extractive (TextRank)',
45
  "Extractive (Latent Semantic Analysis)", 'Keyphrase Extraction (RAKE)', 'Keyword Extraction (RAKE)']
46
 
47
  help_text = "Abstractive: Abstractive summarization generates a summary that may contain words not present in the original text. " \
 
98
  st.session_state.summary = summary
99
 
100
  # Perform extractive summarization
101
+ if radio_selection == "Abstractive (LongT5)":
102
  summary = summarize_with_t5(file_content)
103
  st.session_state.summary = summary
104