Sharathhebbar24
commited on
Commit
•
46fa870
1
Parent(s):
8db4a77
Update README.md
Browse files
README.md
CHANGED
@@ -38,6 +38,7 @@ prompt.
|
|
38 |
>>> outputs = model.generate(inputs, max_length=64, pad_token_id=tokenizer.eos_token_id)
|
39 |
>>> generated = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
40 |
>>> return generated[:generated.rfind(".")+1]
|
41 |
-
>>> prompt = "What is
|
42 |
>>> res = generate_text(prompt)
|
43 |
-
>>> res
|
|
|
|
38 |
>>> outputs = model.generate(inputs, max_length=64, pad_token_id=tokenizer.eos_token_id)
|
39 |
>>> generated = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
40 |
>>> return generated[:generated.rfind(".")+1]
|
41 |
+
>>> prompt = "What is Paracetamol"
|
42 |
>>> res = generate_text(prompt)
|
43 |
+
>>> res
|
44 |
+
```
|