Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Jan 14, 2025
1 parent d7724ca commit 9c99c16
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def from_model_id(
if backend == "openvino":
if not is_openvino_available():
raise ImportError(
f"Backend: {backend} {IMPORT_ERROR.format({backend})}"
f"Backend: {backend} {IMPORT_ERROR.format(backend)}"
)

from optimum.intel import OVModelForCausalLM, OVModelForSeq2SeqLM # type: ignore[import]
Expand All @@ -172,7 +172,7 @@ def from_model_id(
else:
if not is_ipex_available():
raise ImportError(
f"Backend: {backend} {IMPORT_ERROR.format({backend})}"
f"Backend: {backend} {IMPORT_ERROR.format(backend)}"
)

from optimum.intel import IPEXModelForCausalLM, IPEXModelForSeq2SeqLM # type: ignore[import]
Expand Down

0 comments on commit 9c99c16

Please sign in to comment.