Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
I8dNLo committed Jan 15, 2025
1 parent 66839cf commit c6facad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fastembed/text/onnx_embedding.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Dict, Iterable, List, Optional, Sequence, Type, Union
from typing import Any, Dict, Iterable, Optional, Sequence, Type, Union

import numpy as np

Expand Down Expand Up @@ -201,7 +201,7 @@ def __init__(
threads: Optional[int] = None,
providers: Optional[Sequence[OnnxProvider]] = None,
cuda: bool = False,
device_ids: Optional[List[int]] = None,
device_ids: Optional[list[int]] = None,
lazy_load: bool = False,
device_id: Optional[int] = None,
**kwargs,
Expand Down Expand Up @@ -290,8 +290,8 @@ def _get_worker_class(cls) -> Type["TextEmbeddingWorker"]:
return OnnxTextEmbeddingWorker

def _preprocess_onnx_input(
self, onnx_input: Dict[str, np.ndarray], **kwargs
) -> Dict[str, np.ndarray]:
self, onnx_input: dict[str, np.ndarray], **kwargs
) -> dict[str, np.ndarray]:
"""
Preprocess the onnx input.
"""
Expand Down

0 comments on commit c6facad

Please sign in to comment.