Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,8 +32,8 @@ def clean_text(url):
|
|
| 32 |
#initailizing the model pipeline
|
| 33 |
from transformers import BartTokenizer, BartForConditionalGeneration
|
| 34 |
|
| 35 |
-
model = BartForConditionalGeneration.from_pretrained("
|
| 36 |
-
tokenizer = BartTokenizer.from_pretrained("
|
| 37 |
nlp = spacy.load("en_core_web_sm")
|
| 38 |
|
| 39 |
#Defining a function to get the summary of the article
|
|
|
|
| 32 |
#initailizing the model pipeline
|
| 33 |
from transformers import BartTokenizer, BartForConditionalGeneration
|
| 34 |
|
| 35 |
+
model = BartForConditionalGeneration.from_pretrained("jaimin/distilbart-summarizer")
|
| 36 |
+
tokenizer = BartTokenizer.from_pretrained("jaimin/distilbart-summarizer")
|
| 37 |
nlp = spacy.load("en_core_web_sm")
|
| 38 |
|
| 39 |
#Defining a function to get the summary of the article
|