remove unused import
This commit is contained in:
parent
ca75decc5f
commit
f096c8770c
1 changed files with 2 additions and 3 deletions
|
|
@ -18,7 +18,6 @@ import asyncio
|
||||||
import os
|
import os
|
||||||
from collections.abc import Coroutine
|
from collections.abc import Coroutine
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
@ -88,8 +87,8 @@ def normalize_l2(embedding: list[float]) -> NDArray:
|
||||||
|
|
||||||
# Use this instead of asyncio.gather() to bound coroutines
|
# Use this instead of asyncio.gather() to bound coroutines
|
||||||
async def semaphore_gather(
|
async def semaphore_gather(
|
||||||
*coroutines: Coroutine,
|
*coroutines: Coroutine,
|
||||||
max_coroutines: int = SEMAPHORE_LIMIT,
|
max_coroutines: int = SEMAPHORE_LIMIT,
|
||||||
):
|
):
|
||||||
semaphore = asyncio.Semaphore(max_coroutines)
|
semaphore = asyncio.Semaphore(max_coroutines)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue