Update model.py
Browse files
model.py
CHANGED
@@ -348,7 +348,7 @@ class Model():
|
|
348 |
if len(batch) > 0:
|
349 |
for target_language in target_languages:
|
350 |
batch_messages = [[
|
351 |
-
{"role": "system", "content": f"You are an expert in translating
|
352 |
{"role": "user", "content": input},
|
353 |
] for input in batch]
|
354 |
batch_texts = [self.tokenizer.apply_chat_template(
|
|
|
348 |
if len(batch) > 0:
|
349 |
for target_language in target_languages:
|
350 |
batch_messages = [[
|
351 |
+
{"role": "system", "content": f"You are an expert in translating {original_language} to {target_language} for ERP systems. Your task is to translate markdown-formatted text from {original_language} to {target_language}. The text to be translated may not necessarily be complete phrases or sentences, but you must translate it into the corresponding language based on your own understanding, preserving its formatting without adding extra content."},
|
352 |
{"role": "user", "content": input},
|
353 |
] for input in batch]
|
354 |
batch_texts = [self.tokenizer.apply_chat_template(
|