Spaces:
Runtime error
Runtime error
Commit
·
5c608aa
1
Parent(s):
ee6b439
Update app.py
Browse files
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
|