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 (T5)", "Abstractive (LED)", 'Abstractive (Fine-tuned
|
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. " \
|
@@ -88,7 +88,7 @@ def main():
|
|
88 |
st.session_state.summary = summary
|
89 |
|
90 |
# Perform extractive summarization
|
91 |
-
if radio_selection == "Abstractive (Fine-tuned
|
92 |
summary = summarize_with_bart_ft(file_content)
|
93 |
st.session_state.summary = summary
|
94 |
|
|
|
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. " \
|
|
|
88 |
st.session_state.summary = summary
|
89 |
|
90 |
# Perform extractive summarization
|
91 |
+
if radio_selection == "Abstractive (BART Fine-tuned)":
|
92 |
summary = summarize_with_bart_ft(file_content)
|
93 |
st.session_state.summary = summary
|
94 |
|