dominguesm commited on
Commit
ff973ff
1 Parent(s): 7230c4d

update max len

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ pipe = pipeline("summarization", "dominguesm/positive-reframing-ptbr")
8
 
9
  def predict(text, operation):
10
  try:
11
- res = pipe(f"[{operation}]: {text}", max_length=1024)
12
  except Exception as e:
13
  return e
14
 
8
 
9
  def predict(text, operation):
10
  try:
11
+ res = pipe(f"[{operation}]: {text}", max_length=128)
12
  except Exception as e:
13
  return e
14