LapStore commited on
Commit
26e9f88
1 Parent(s): 2b2b6d9
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -52,14 +52,15 @@ async def rate_limit_exceeded(request: Request, exc):
52
  def main():
53
  return "Hello From Background remover !"
54
 
 
 
55
  @app.post("/items")
56
  @limiter.limit("3/hour") # must have parameter request
57
  async def read_items(request: Request, type_of_filters: str = Form(...)):
58
  return {"items": str(type_of_filters)}
59
-
60
 
61
  @app.post('/imageStep1')
62
- @limiter.limit("3/hour") # must have parameter request
63
  async def image_step1(request: Request,image_file: UploadFile = File(...),background_image: Optional [UploadFile] = File(None),type_of_filters: str = Form(...), blur_radius: str = Form(...)):
64
  #return {"type ":type_of_filters ,"radius":blur_radius,"image":image_file,"back":background_image}
65
  #type_of_filters : cam / ...remove / ...back
 
52
  def main():
53
  return "Hello From Background remover !"
54
 
55
+ '''
56
+ #test limit
57
  @app.post("/items")
58
  @limiter.limit("3/hour") # must have parameter request
59
  async def read_items(request: Request, type_of_filters: str = Form(...)):
60
  return {"items": str(type_of_filters)}
61
+ '''
62
 
63
  @app.post('/imageStep1')
 
64
  async def image_step1(request: Request,image_file: UploadFile = File(...),background_image: Optional [UploadFile] = File(None),type_of_filters: str = Form(...), blur_radius: str = Form(...)):
65
  #return {"type ":type_of_filters ,"radius":blur_radius,"image":image_file,"back":background_image}
66
  #type_of_filters : cam / ...remove / ...back