Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import PyPDF2
|
| 3 |
from extractive_summarization import summarize_with_textrank, summarize_with_lsa
|
| 4 |
-
from abstractive_summarization import
|
| 5 |
from keyword_extraction import extract_keywords
|
| 6 |
from keyphrase_extraction import extract_sentences_with_obligations
|
| 7 |
#from blanc import BlancHelp
|
|
@@ -73,7 +73,7 @@ def main():
|
|
| 73 |
|
| 74 |
# Perform extractive summarization
|
| 75 |
if radio_selection == "Abstractive (BART-large-CNN)":
|
| 76 |
-
summary =
|
| 77 |
st.session_state.summary = summary
|
| 78 |
|
| 79 |
# Perform extractive summarization
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import PyPDF2
|
| 3 |
from extractive_summarization import summarize_with_textrank, summarize_with_lsa
|
| 4 |
+
from abstractive_summarization import summarize_with_bart_cnn, summarize_with_bart_ft, summarize_with_led, summarize_with_t5
|
| 5 |
from keyword_extraction import extract_keywords
|
| 6 |
from keyphrase_extraction import extract_sentences_with_obligations
|
| 7 |
#from blanc import BlancHelp
|
|
|
|
| 73 |
|
| 74 |
# Perform extractive summarization
|
| 75 |
if radio_selection == "Abstractive (BART-large-CNN)":
|
| 76 |
+
summary = summarize_with_bart_cnn(file_content)
|
| 77 |
st.session_state.summary = summary
|
| 78 |
|
| 79 |
# Perform extractive summarization
|