Spaces:
Sleeping
Sleeping
Increase max_length parameter in text generation to 520 for enhanced output capacity in chatbot application.
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ text_generator = pipeline(
|
|
| 22 |
model=model,
|
| 23 |
tokenizer=tokenizer,
|
| 24 |
device=device,
|
| 25 |
-
max_length=
|
| 26 |
do_sample=True,
|
| 27 |
temperature=0.7
|
| 28 |
)
|
|
|
|
| 22 |
model=model,
|
| 23 |
tokenizer=tokenizer,
|
| 24 |
device=device,
|
| 25 |
+
max_length=520,
|
| 26 |
do_sample=True,
|
| 27 |
temperature=0.7
|
| 28 |
)
|