jonathanjordan21 commited on
Commit
9f761aa
·
verified ·
1 Parent(s): 95ec105

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,6 +18,6 @@ def greet_json():
18
  return {"Hello": "World!"}
19
 
20
 
21
- @app.get("/summary")
22
  def summary(inp: InputText):
23
  return summarizer(inp.text, max_length=1000, min_length=30, do_sample=False)
 
18
  return {"Hello": "World!"}
19
 
20
 
21
+ @app.post("/summary")
22
  def summary(inp: InputText):
23
  return summarizer(inp.text, max_length=1000, min_length=30, do_sample=False)