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