Spaces:
Runtime error
Runtime error
priyaradhakrishnan
commited on
Commit
•
019e6b7
1
Parent(s):
d9dd3c1
make it cpu friendly
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ from transformers import T5Tokenizer, T5ForConditionalGeneration, T5Config
|
|
8 |
|
9 |
#initialize
|
10 |
device = torch.device("cuda")
|
11 |
-
model = T5ForConditionalGeneration.from_pretrained('t5-small'
|
12 |
-
tokenizer = T5Tokenizer.from_pretrained('t5-small'
|
13 |
|
14 |
|
15 |
def summ(text_content):
|
|
|
8 |
|
9 |
#initialize
|
10 |
device = torch.device("cuda")
|
11 |
+
model = T5ForConditionalGeneration.from_pretrained('t5-small')#,device_map="auto")
|
12 |
+
tokenizer = T5Tokenizer.from_pretrained('t5-small')#,device_map="auto")
|
13 |
|
14 |
|
15 |
def summ(text_content):
|