Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Error on line43 for translation  #47

@ericguan8

Description

@ericguan8

Got the error below when trying to run the translation command (python translate.py --src_lang python --tgt_lang java --model_path model_1.pth < count_ten.py). Please advise what causes it and how to fix it?

File "translate.py", line 43
help=f"Source language, should be either {', '.join(SUPPORTED_LANGUAGES[:-1])} or {SUPPORTED_LANGUAGES[-1]}")
^
SyntaxError: invalid syntax

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions