Zakia commited on
Commit
bd92217
·
1 Parent(s): f3097cf

Updated example texts to match the GPT RLHF model examples

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -16,9 +16,9 @@ tags:
16
  - depression
17
  - text generation
18
  widget:
19
- - text: This medication has changed my life for the better
20
  example_title: Example 1
21
- - text: I've had a terrible experience with this medication
22
  example_title: Example 2
23
  ---
24
 
@@ -75,11 +75,11 @@ def generate_review(prompt, model, tokenizer):
75
  return tokenizer.decode(outputs[0], skip_special_tokens=True)
76
 
77
  # Example usage
78
- prompt = "This medication has changed my life for the better"
79
  print(generate_review(prompt, model, tokenizer))
80
 
81
  # Example usage
82
- prompt = "I've had a terrible experience with this medication"
83
  print(generate_review(prompt, model, tokenizer))
84
  ```
85
 
 
16
  - depression
17
  - text generation
18
  widget:
19
+ - text: After starting this new treatment, I felt
20
  example_title: Example 1
21
+ - text: I was apprehensive about the side effects of
22
  example_title: Example 2
23
  ---
24
 
 
75
  return tokenizer.decode(outputs[0], skip_special_tokens=True)
76
 
77
  # Example usage
78
+ prompt = "After starting this new treatment, I felt"
79
  print(generate_review(prompt, model, tokenizer))
80
 
81
  # Example usage
82
+ prompt = "I was apprehensive about the side effects of"
83
  print(generate_review(prompt, model, tokenizer))
84
  ```
85