bhavinjawade
commited on
Commit
•
f71d0bd
1
Parent(s):
c73eb76
Update README.md
Browse files
README.md
CHANGED
@@ -49,13 +49,13 @@ Use the pipeline to generate a sequence of text based on the prompt. You can adj
|
|
49 |
|
50 |
```python
|
51 |
sequences = pipeline(
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
)
|
59 |
print(sequences[0]['generated_text'])
|
60 |
```
|
61 |
|
|
|
49 |
|
50 |
```python
|
51 |
sequences = pipeline(
|
52 |
+
prompt,
|
53 |
+
do_sample=True,
|
54 |
+
temperature=0.7,
|
55 |
+
top_p=0.9,
|
56 |
+
num_return_sequences=1,
|
57 |
+
max_length=200,
|
58 |
+
)
|
59 |
print(sequences[0]['generated_text'])
|
60 |
```
|
61 |
|