Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import torch
|
|
3 |
|
4 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
5 |
model = AutoModelForSeq2SeqLM.from_pretrained("ramsrigouthamg/t5-large-paraphraser-diverse-high-quality")
|
6 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
7 |
|
8 |
device = torch.device("cude" if torch.cuda.is_available() else "cpu")
|
9 |
model = model.to(device)
|
|
|
3 |
|
4 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
5 |
model = AutoModelForSeq2SeqLM.from_pretrained("ramsrigouthamg/t5-large-paraphraser-diverse-high-quality")
|
6 |
+
tokenizer = AutoTokenizer.from_pretrained("ramsrigouthamg/t5-large-paraphraser-diverse-high-quality")
|
7 |
|
8 |
device = torch.device("cude" if torch.cuda.is_available() else "cpu")
|
9 |
model = model.to(device)
|