Skip to content

Commit

Permalink
Linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Nov 20, 2023
1 parent aad2600 commit 7f7d8e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions machine/translation/huggingface/hugging_face_nmt_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(
and src_lang not in additional_special_tokens
):
raise ValueError(
f"'{src_lang}' is not a valid language code. This error can happen when there is no matching training data and the language code is not in the NLLB-200."
f"'{src_lang}' is not a valid language code. This error can happen when "
+ "there is no matching training data and the language code is not in the NLLB-200."
)

if (
Expand All @@ -57,7 +58,8 @@ def __init__(
and tgt_lang not in additional_special_tokens
):
raise ValueError(
f"'{tgt_lang}' is not a valid language code. This error can happen when there is no matching training data and the language code is not in the NLLB-200."
f"'{tgt_lang}' is not a valid language code. This error can happen when "
+ "there is no matching training data and the language code is not in the NLLB-200."
)

self._pipeline = _TranslationPipeline(
Expand Down

0 comments on commit 7f7d8e9

Please sign in to comment.