lysandre HF staff amyeroberts HF staff commited on
Commit
27dcfa7
1 Parent(s): 3d2b5f2

Update README.md (#38)

Browse files

- Update README.md (662565064bbfc55b8ffc6a90e1fd2ca295c5c070)


Co-authored-by: Amy Roberts <amyeroberts@users.noreply.huggingface.co>

Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -55,8 +55,8 @@ You can use this model directly with a pipeline for text generation.
55
  >>> from transformers import pipeline
56
 
57
  >>> generator = pipeline('text-generation', model="facebook/opt-125m")
58
- >>> generator("Hello, I'm am conscious and")
59
- [{'generated_text': 'Hello, I am conscious and aware of the fact that I am a woman. I am aware of'}]
60
  ```
61
 
62
  By default, generation is deterministic. In order to use the top-k sampling, please set `do_sample` to `True`.
@@ -66,8 +66,8 @@ By default, generation is deterministic. In order to use the top-k sampling, ple
66
 
67
  >>> set_seed(32)
68
  >>> generator = pipeline('text-generation', model="facebook/opt-125m", do_sample=True)
69
- >>> generator("Hello, I'm am conscious and")
70
- [{'generated_text': 'Hello, I am conscious and active member of the Khaosan Group, a private, self'}]
71
  ```
72
 
73
  ### Limitations and bias
 
55
  >>> from transformers import pipeline
56
 
57
  >>> generator = pipeline('text-generation', model="facebook/opt-125m")
58
+ >>> generator("What are we having for dinner?")
59
+ [{'generated_text': 'What are we having for dinner?\nA nice dinner with a friend.\nI'm not sure'}]
60
  ```
61
 
62
  By default, generation is deterministic. In order to use the top-k sampling, please set `do_sample` to `True`.
 
66
 
67
  >>> set_seed(32)
68
  >>> generator = pipeline('text-generation', model="facebook/opt-125m", do_sample=True)
69
+ >>> generator("What are we having for dinner?")
70
+ [{'generated_text': 'What are we having for dinner?\nCoffee, sausage and cream cheese at Chili's.'}]
71
  ```
72
 
73
  ### Limitations and bias