Spaces:
Sleeping
Sleeping
Update abstractive_summarization.py
Browse files
abstractive_summarization.py
CHANGED
@@ -5,8 +5,8 @@ tokenizer = AutoTokenizer.from_pretrained("EE21/BART-ToSSimplify")
|
|
5 |
model = AutoModelForSeq2SeqLM.from_pretrained("EE21/BART-ToSSimplify")
|
6 |
|
7 |
# Load the BART-large-cnn tokenizer and model
|
8 |
-
tokenizer_cnn =
|
9 |
-
model_cnn =
|
10 |
|
11 |
# Function to summarize using the fine-tuned BART model
|
12 |
def summarize_with_bart_ft(input_text):
|
|
|
5 |
model = AutoModelForSeq2SeqLM.from_pretrained("EE21/BART-ToSSimplify")
|
6 |
|
7 |
# Load the BART-large-cnn tokenizer and model
|
8 |
+
tokenizer_cnn = AutoTokenizer.from_pretrained("facebook/bart-large-cnn")
|
9 |
+
model_cnn = AutoModelForSeq2SeqLM.from_pretrained("facebook/bart-large-cnn")
|
10 |
|
11 |
# Function to summarize using the fine-tuned BART model
|
12 |
def summarize_with_bart_ft(input_text):
|