Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fix lint

Daniel Gatis1a893a745bc3
diff --git a/rembg/cli.py b/rembg/cli.py
index 2d3cebd..bb066e2 100644
--- a/rembg/cli.py
+++ b/rembg/cli.py
@@ -397,6 +397,7 @@ def s(port: int, log_level: str, threads: int) -> None:
if threads is not None:
from anyio.lowlevel import RunVar
from anyio import CapacityLimiter
+
RunVar("_default_thread_limiter").set(CapacityLimiter(threads))
@app.get(