Update README.md
Browse files
README.md
CHANGED
@@ -89,7 +89,7 @@ pipeline_tag: text2text-generation
|
|
89 |
|
90 |
# bart-large-mnli: instruction tuned - v1
|
91 |
|
92 |
-
<a href="https://colab.research.google.com/gist/pszemraj/
|
93 |
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
|
94 |
</a>
|
95 |
|
@@ -116,7 +116,7 @@ assistant = pipeline(
|
|
116 |
cfg = GenerationConfig.from_pretrained(model_name)
|
117 |
|
118 |
# pass an 'instruction' as the prompt to the pipeline
|
119 |
-
prompt = "
|
120 |
result = assistant(prompt, generation_config=cfg)[0]["generated_text"]
|
121 |
print(result)
|
122 |
```
|
|
|
89 |
|
90 |
# bart-large-mnli: instruction tuned - v1
|
91 |
|
92 |
+
<a href="https://colab.research.google.com/gist/pszemraj/43431a164e2e3ab0640182f3419c584d/bart-large-instruct-example.ipynb">
|
93 |
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
|
94 |
</a>
|
95 |
|
|
|
116 |
cfg = GenerationConfig.from_pretrained(model_name)
|
117 |
|
118 |
# pass an 'instruction' as the prompt to the pipeline
|
119 |
+
prompt = "Write a guide on how to become a ninja while working a 9-5 job."
|
120 |
result = assistant(prompt, generation_config=cfg)[0]["generated_text"]
|
121 |
print(result)
|
122 |
```
|