abdulmatinomotoso commited on
Commit
5c608aa
·
1 Parent(s): ee6b439

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -36,6 +36,7 @@ def clean_text(url):
36
  from transformers import BartTokenizer, BartForConditionalGeneration
37
  model = BartForConditionalGeneration.from_pretrained("sshleifer/distilbart-cnn-12-6")
38
  tokenizer = BartTokenizer.from_pretrained("sshleifer/distilbart-cnn-12-6")
 
39
 
40
  #Defining a function to get the summary of the article
41
  #Defining a function to get the summary of the article
 
36
  from transformers import BartTokenizer, BartForConditionalGeneration
37
  model = BartForConditionalGeneration.from_pretrained("sshleifer/distilbart-cnn-12-6")
38
  tokenizer = BartTokenizer.from_pretrained("sshleifer/distilbart-cnn-12-6")
39
+ nlp = spacy.load("en_core_web_sm")
40
 
41
  #Defining a function to get the summary of the article
42
  #Defining a function to get the summary of the article