Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,4 +25,4 @@ def greet_json():
|
|
25 |
@app.post("/summary")
|
26 |
def summary(inp: InputText):
|
27 |
print(inp.text)
|
28 |
-
return summarizer(inp.text[:3600], max_length=
|
|
|
25 |
@app.post("/summary")
|
26 |
def summary(inp: InputText):
|
27 |
print(inp.text)
|
28 |
+
return summarizer(inp.text[:3600], max_length=2048, min_length=30, do_sample=False)
|