Spaces:
Runtime error
Runtime error
Commit
·
1ea6a90
1
Parent(s):
57b26ac
added
Browse files
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")
|
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 |
|