Update README.md
Browse files
README.md
CHANGED
@@ -23,19 +23,14 @@ A user is asking an ambiguous question (where ambiguous question is a question t
|
|
23 |
|
24 |
|
25 |
```
|
26 |
-
|
27 |
-
|
28 |
from transformers import AutoTokenizer, AutoModelWithLMHead
|
29 |
tokenizer = AutoTokenizer.from_pretrained("salesken/clariq_gpt2")
|
30 |
model = AutoModelWithLMHead.from_pretrained("salesken/clariq_gpt2")
|
31 |
|
32 |
-
|
33 |
-
|
34 |
input_query="Serve your models directly from Hugging Face infrastructure and run large scale NLP models in milliseconds with just a few lines of code"
|
35 |
|
36 |
query= input_query + " ~~ "
|
37 |
|
38 |
-
|
39 |
input_ids = tokenizer.encode(query.lower(), return_tensors='pt')
|
40 |
sample_outputs = model.generate(input_ids,
|
41 |
do_sample=True,
|
|
|
23 |
|
24 |
|
25 |
```
|
|
|
|
|
26 |
from transformers import AutoTokenizer, AutoModelWithLMHead
|
27 |
tokenizer = AutoTokenizer.from_pretrained("salesken/clariq_gpt2")
|
28 |
model = AutoModelWithLMHead.from_pretrained("salesken/clariq_gpt2")
|
29 |
|
|
|
|
|
30 |
input_query="Serve your models directly from Hugging Face infrastructure and run large scale NLP models in milliseconds with just a few lines of code"
|
31 |
|
32 |
query= input_query + " ~~ "
|
33 |
|
|
|
34 |
input_ids = tokenizer.encode(query.lower(), return_tensors='pt')
|
35 |
sample_outputs = model.generate(input_ids,
|
36 |
do_sample=True,
|