dominguesm commited on
Commit
5e0351a
1 Parent(s): 963bdd7

update max_len

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