Rembg is a tool to remove images background
fix lint
Daniel Gatis33e02fe7322d
diff --git a/rembg/cli.py b/rembg/cli.pyindex 55f07d4..599c910 100644--- a/rembg/cli.py+++ b/rembg/cli.py@@ -9,7 +9,7 @@ import clickimport filetypeimport uvicornfrom asyncer import asyncify-from fastapi import Depends, FastAPI, File, Query, Form+from fastapi import Depends, FastAPI, File, Form, Queryfrom fastapi.middleware.cors import CORSMiddlewarefrom starlette.responses import Responsefrom tqdm import tqdm@@ -294,10 +294,16 @@ def s(port: int, log_level: str) -> None:),a: bool = Query(default=False, description="Enable Alpha Matting"),af: int = Query(- default=240, ge=0, le=255, description="Alpha Matting (Foreground Threshold)"+ default=240,+ ge=0,+ le=255,+ description="Alpha Matting (Foreground Threshold)",),ab: int = Query(- default=10, ge=0, le=255, description="Alpha Matting (Background Threshold)"+ default=10,+ ge=0,+ le=255,+ description="Alpha Matting (Background Threshold)",),ae: int = Query(default=10, ge=0, description="Alpha Matting (Erode Structure Size)"@@ -320,10 +326,16 @@ def s(port: int, log_level: str) -> None:),a: bool = Form(default=False, description="Enable Alpha Matting"),af: int = Form(- default=240, ge=0, le=255, description="Alpha Matting (Foreground Threshold)"+ default=240,+ ge=0,+ le=255,+ description="Alpha Matting (Foreground Threshold)",),ab: int = Form(- default=10, ge=0, le=255, description="Alpha Matting (Background Threshold)"+ default=10,+ ge=0,+ le=255,+ description="Alpha Matting (Background Threshold)",),ae: int = Form(default=10, ge=0, description="Alpha Matting (Erode Structure Size)"@@ -336,7 +348,7 @@ def s(port: int, log_level: str) -> None:self.ab = abself.ae = aeself.om = om-+def im_without_bg(content: bytes, commons: CommonQueryParams) -> Response:return Response(remove(