Skip to content

Commit 7606e06

Browse files
authored
Merge pull request #633 from michaelfeil/rw/fix-lint
fix linting in select_model.py
2 parents 601df47 + 84c5172 commit 7606e06

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

libs/infinity_emb/infinity_emb/inference/select_model.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ def get_engine_type_from_config(
3333
else:
3434
from huggingface_hub import hf_hub_download # type: ignore[import-untyped]
3535

36-
config_path = hf_hub_download(
37-
engine_args.model_name_or_path,
38-
revision=engine_args.revision,
39-
filename="config.json",
36+
config_path = Path(
37+
hf_hub_download(
38+
engine_args.model_name_or_path,
39+
revision=engine_args.revision,
40+
filename="config.json",
41+
)
4042
)
4143

4244
with open(config_path, "r") as f:

0 commit comments

Comments
 (0)