Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
license: apache-2.0
|
| 4 |
inference: false
|
| 5 |
|
|
@@ -15,8 +15,8 @@ else :
|
|
| 15 |
device = "cpu"
|
| 16 |
|
| 17 |
|
| 18 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 19 |
-
model = AutoModelForCausalLM.from_pretrained("
|
| 20 |
|
| 21 |
input_query="what be the reason for everyone leave the company"
|
| 22 |
query= "<|startoftext|> " + input_query + " ~~~"
|
|
|
|
| 1 |
---
|
| 2 |
+
|
| 3 |
license: apache-2.0
|
| 4 |
inference: false
|
| 5 |
|
|
|
|
| 15 |
device = "cpu"
|
| 16 |
|
| 17 |
|
| 18 |
+
tokenizer = AutoTokenizer.from_pretrained("Ashishkr/grammar_correction")
|
| 19 |
+
model = AutoModelForCausalLM.from_pretrained("Ashishkr/grammar_correction").to(device)
|
| 20 |
|
| 21 |
input_query="what be the reason for everyone leave the company"
|
| 22 |
query= "<|startoftext|> " + input_query + " ~~~"
|