Spaces:
Sleeping
Sleeping
dominguesm
commited on
Commit
·
ff973ff
1
Parent(s):
7230c4d
update max len
Browse files
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=
|
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 |
|