mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-23 11:30:37 +00:00
community: Bump ruff version to 0.9 (#29206)
Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
committed by
GitHub
parent
30f6c9f5c8
commit
723031d548
@@ -166,19 +166,19 @@ class OpenVINOEmbeddings(BaseModel, Embeddings):
|
||||
import numpy as np
|
||||
except ImportError as e:
|
||||
raise ImportError(
|
||||
"Unable to import numpy, please install with " "`pip install -U numpy`."
|
||||
"Unable to import numpy, please install with `pip install -U numpy`."
|
||||
) from e
|
||||
try:
|
||||
from tqdm import trange
|
||||
except ImportError as e:
|
||||
raise ImportError(
|
||||
"Unable to import tqdm, please install with " "`pip install -U tqdm`."
|
||||
"Unable to import tqdm, please install with `pip install -U tqdm`."
|
||||
) from e
|
||||
try:
|
||||
import torch
|
||||
except ImportError as e:
|
||||
raise ImportError(
|
||||
"Unable to import torch, please install with " "`pip install -U torch`."
|
||||
"Unable to import torch, please install with `pip install -U torch`."
|
||||
) from e
|
||||
|
||||
def run_mean_pooling(model_output: Any, attention_mask: Any) -> Any:
|
||||
|
Reference in New Issue
Block a user