samariddin commited on
Commit
1ea6a90
·
1 Parent(s): 57b26ac
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from transformers import BertTokenizerFast, EncoderDecoderModel
5
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
6
  ckpt = "csebuetnlp/mT5_multilingual_XLSum"
7
  tokenizer = BertTokenizerFast.from_pretrained("csebuetnlp/mT5_multilingual_XLSum")
8
- model = EncoderDecoderModel.from_pretrained("csebuetnlp/mT5_multilingual_XLSum").to(device)
9
 
10
  def generate_summary(text):
11
 
 
5
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
6
  ckpt = "csebuetnlp/mT5_multilingual_XLSum"
7
  tokenizer = BertTokenizerFast.from_pretrained("csebuetnlp/mT5_multilingual_XLSum")
8
+ model = EncoderDecoderModel.from_pretrained("csebuetnlp/mT5_multilingual_XLSum")
9
 
10
  def generate_summary(text):
11