Updated example texts to match the GPT RLHF model examples
Browse files
README.md
CHANGED
@@ -16,9 +16,9 @@ tags:
|
|
16 |
- depression
|
17 |
- text generation
|
18 |
widget:
|
19 |
-
- text:
|
20 |
example_title: Example 1
|
21 |
-
- text: I
|
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 = "
|
79 |
print(generate_review(prompt, model, tokenizer))
|
80 |
|
81 |
# Example usage
|
82 |
-
prompt = "I
|
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 |
|