Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Auto-sync from GitHub Actions
Browse files- core/engine.py +1 -1
core/engine.py
CHANGED
|
@@ -568,7 +568,7 @@ class DanbooruTagger:
|
|
| 568 |
@classmethod
|
| 569 |
def _get_cpu_sem(cls) -> asyncio.Semaphore:
|
| 570 |
if cls._cpu_sem is None:
|
| 571 |
-
cls._cpu_sem = asyncio.Semaphore(
|
| 572 |
return cls._cpu_sem
|
| 573 |
|
| 574 |
async def search_async(self, request: SearchRequest) -> SearchResponse:
|
|
|
|
| 568 |
@classmethod
|
| 569 |
def _get_cpu_sem(cls) -> asyncio.Semaphore:
|
| 570 |
if cls._cpu_sem is None:
|
| 571 |
+
cls._cpu_sem = asyncio.Semaphore(2)
|
| 572 |
return cls._cpu_sem
|
| 573 |
|
| 574 |
async def search_async(self, request: SearchRequest) -> SearchResponse:
|