Rahmat82 commited on
Commit
47c8605
·
verified ·
1 Parent(s): 2c78b7a

set max_new_tokens to 128

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ async def summarize(text, retries=6):
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,
 
15
  data = {
16
  "inputs": text,
17
  "options": {
18
+ "max_new_tokens": 128,
19
  "min_length": 10,
20
  "max_length": 500,
21
  "length_penalty": 2.0,