vardhan-rawat commited on
Commit
3ca0c25
·
verified ·
1 Parent(s): 3ef4406

Update app.py

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