set max_token to 100
Browse files
app.py
CHANGED
@@ -15,9 +15,9 @@ async def summarize(text, retries=5):
|
|
15 |
data = {
|
16 |
"inputs": text,
|
17 |
"options": {
|
18 |
-
"max_new_tokens":
|
19 |
"min_length": 10,
|
20 |
-
"max_length":
|
21 |
"length_penalty": 2.0,
|
22 |
"num_beams": 3,
|
23 |
"early_stopping": True
|
|
|
15 |
data = {
|
16 |
"inputs": text,
|
17 |
"options": {
|
18 |
+
"max_new_tokens": 100,
|
19 |
"min_length": 10,
|
20 |
+
"max_length": 500,
|
21 |
"length_penalty": 2.0,
|
22 |
"num_beams": 3,
|
23 |
"early_stopping": True
|