Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fix lint

Daniel Gatise66d2f3fbe3c
diff --git a/rembg/cli.py b/rembg/cli.py
index bb066e2..a631cdf 100644
--- a/rembg/cli.py
+++ b/rembg/cli.py
@@ -395,8 +395,8 @@ def s(port: int, log_level: str, threads: int) -> None:
@app.on_event("startup")
def startup():
if threads is not None:
- from anyio.lowlevel import RunVar
from anyio import CapacityLimiter
+ from anyio.lowlevel import RunVar
RunVar("_default_thread_limiter").set(CapacityLimiter(threads))