jarif commited on
Commit
0f97217
1 Parent(s): 89a4135

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('article_highlights_part3.pkl')
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