Update README.md
Browse files
README.md
CHANGED
@@ -48,7 +48,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
48 |
model.to(device)
|
49 |
|
50 |
def correct(text, max_length):
|
51 |
-
|
52 |
max_length=max_length,
|
53 |
truncation=True,
|
54 |
return_tensors="pt").to(device)
|
|
|
48 |
model.to(device)
|
49 |
|
50 |
def correct(text, max_length):
|
51 |
+
model_inputs = tokenizer(text,
|
52 |
max_length=max_length,
|
53 |
truncation=True,
|
54 |
return_tensors="pt").to(device)
|