Spaces:
Runtime error
Runtime error
dominguesm
commited on
Commit
•
5e0351a
1
Parent(s):
963bdd7
update max_len
Browse files
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=
|
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 |
|