princepride commited on
Commit
f3f7af4
·
verified ·
1 Parent(s): c6ac2b1

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
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 Chinese to English 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(
 
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(