Skip to content

Commit 3d9e7e0

Browse files
committed
fix(config): change default language template
1 parent f1603bc commit 3d9e7e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def parse_args():
343343
# Prompt Config
344344
parser.add_argument("--task-template", type=str, default="Translate text in the {src_start}{src_end} section to the target language as naturally as possible, considering the context in the translation history and ensuring consistency and cultural relevance. Translated text must be enclosed in the {tgt_start}{tgt_end} section. You must respond with only the {tgt_end} section.", help="Template for the translation task")
345345
parser.add_argument("--specify-language", action="store_true", help="Specify source and target languages in the prompt")
346-
parser.add_argument("--language-template", type=str, default="Translate from {src_lang} to {tgt_lang}", help="Template for specifying languages")
346+
parser.add_argument("--language-template", type=str, default="Source language : {src_lang}\nTarget language : {tgt_lang}", help="Template for specifying languages")
347347

348348
# Tag Config
349349
parser.add_argument("--src-start", type=str, default="<src>", help="Start tag for the source language")

0 commit comments

Comments
 (0)