Update README.md
#10
by
Blks
- opened
README.md
CHANGED
|
@@ -19,7 +19,7 @@ set a seed for reproducibility:
|
|
| 19 |
>>> tokenizer = BioGptTokenizer.from_pretrained("microsoft/biogpt")
|
| 20 |
>>> generator = pipeline('text-generation', model=model, tokenizer=tokenizer)
|
| 21 |
>>> set_seed(42)
|
| 22 |
-
>>> generator("COVID-19 is", max_length=
|
| 23 |
[{'generated_text': 'COVID-19 is a disease that spreads worldwide and is currently found in a growing proportion of the population'},
|
| 24 |
{'generated_text': 'COVID-19 is one of the largest viral epidemics in the world.'},
|
| 25 |
{'generated_text': 'COVID-19 is a common condition affecting an estimated 1.1 million people in the United States alone.'},
|
|
|
|
| 19 |
>>> tokenizer = BioGptTokenizer.from_pretrained("microsoft/biogpt")
|
| 20 |
>>> generator = pipeline('text-generation', model=model, tokenizer=tokenizer)
|
| 21 |
>>> set_seed(42)
|
| 22 |
+
>>> generator("COVID-19 is", max_length=30, num_return_sequences=5)
|
| 23 |
[{'generated_text': 'COVID-19 is a disease that spreads worldwide and is currently found in a growing proportion of the population'},
|
| 24 |
{'generated_text': 'COVID-19 is one of the largest viral epidemics in the world.'},
|
| 25 |
{'generated_text': 'COVID-19 is a common condition affecting an estimated 1.1 million people in the United States alone.'},
|