Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,4 +20,4 @@ def greet_json():
|
|
| 20 |
|
| 21 |
@app.post("/summary")
|
| 22 |
def summary(inp: InputText):
|
| 23 |
-
return summarizer(inp.text, max_length=1000, min_length=30, do_sample=False)
|
|
|
|
| 20 |
|
| 21 |
@app.post("/summary")
|
| 22 |
def summary(inp: InputText):
|
| 23 |
+
return summarizer(inp.text[:3000], max_length=1000, min_length=30, do_sample=False)
|