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
|
||||
from collections.abc import Coroutine
|
||||
from datetime import datetime
|
||||
from typing import Any
|
||||
|
||||
import numpy as np
|
||||
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
|
||||
async def semaphore_gather(
|
||||
*coroutines: Coroutine,
|
||||
max_coroutines: int = SEMAPHORE_LIMIT,
|
||||
*coroutines: Coroutine,
|
||||
max_coroutines: int = SEMAPHORE_LIMIT,
|
||||
):
|
||||
semaphore = asyncio.Semaphore(max_coroutines)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue