Update README.md
Browse files
README.md
CHANGED
@@ -144,7 +144,7 @@ from model import IrisClassifier as Classifier
|
|
144 |
def main():
|
145 |
# Model training and evaluation
|
146 |
"""
|
147 |
-
inputs = tokenizer(input_text, return_tensors="pt").
|
148 |
outputs = model.generate(**inputs, max_new_tokens=140)
|
149 |
print(tokenizer.decode(outputs[0]))
|
150 |
```
|
|
|
144 |
def main():
|
145 |
# Model training and evaluation
|
146 |
"""
|
147 |
+
inputs = tokenizer(input_text, return_tensors="pt").to(model.device)
|
148 |
outputs = model.generate(**inputs, max_new_tokens=140)
|
149 |
print(tokenizer.decode(outputs[0]))
|
150 |
```
|