Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from transformers import BartForConditionalGeneration
|
|
8 |
# Load the pre-trained model and tokenizer
|
9 |
pretrained_model_name = "facebook/bart-large-cnn"
|
10 |
hf_tokenizer = T5Tokenizer.from_pretrained(pretrained_model_name)
|
11 |
-
learn = load_learner('
|
12 |
|
13 |
def summarize(article):
|
14 |
# Preprocess the input text
|
|
|
8 |
# Load the pre-trained model and tokenizer
|
9 |
pretrained_model_name = "facebook/bart-large-cnn"
|
10 |
hf_tokenizer = T5Tokenizer.from_pretrained(pretrained_model_name)
|
11 |
+
learn = load_learner('article_highlights.pkl')
|
12 |
|
13 |
def summarize(article):
|
14 |
# Preprocess the input text
|