Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 (
|
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 (
|
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 |
|