vardhan-rawat
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import torch
|
|
5 |
|
6 |
# Loading BART
|
7 |
model_name = "facebook/bart-large-cnn"
|
8 |
-
tokenizer = BartTokenizer.from_pretrained(
|
9 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
10 |
model = BartForConditionalGeneration.from_pretrained(model_name).to(device)
|
11 |
|
|
|
5 |
|
6 |
# Loading BART
|
7 |
model_name = "facebook/bart-large-cnn"
|
8 |
+
tokenizer = BartTokenizer.from_pretrained("facebook/bart-large-cnn")
|
9 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
10 |
model = BartForConditionalGeneration.from_pretrained(model_name).to(device)
|
11 |
|