Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import transformers
|
|
8 |
from keybert import KeyBERT
|
9 |
from transformers import (T5ForConditionalGeneration, T5Tokenizer)
|
10 |
|
11 |
-
DEVICE = torch.device('
|
12 |
MAX_LEN = 512
|
13 |
|
14 |
tokenizer = T5Tokenizer.from_pretrained('t5-base')
|
|
|
8 |
from keybert import KeyBERT
|
9 |
from transformers import (T5ForConditionalGeneration, T5Tokenizer)
|
10 |
|
11 |
+
DEVICE = torch.device('cpu')
|
12 |
MAX_LEN = 512
|
13 |
|
14 |
tokenizer = T5Tokenizer.from_pretrained('t5-base')
|