Skip to content

Commit

Permalink
Merge pull request #19 from neavo/dev
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
neavo authored Jul 10, 2024
2 parents 85e97e2 + 7ed8bab commit 9fc6c07
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions model/LLM.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,6 @@ async def translate_surface_batch(self, words):
# 上下文翻译任务
async def translate_context(self, word, retry):
async with self.semaphore:
# 截取部分上下文翻译,节约时间
word.context = word.clip_context(self.MAX_TOKENS_TRANSLATE_CONTEXT)

context_translation = []
prompt = self.prompt_translate_context
task_type = self.TASK_TYPE_TRANSLATE_CONTEXT
Expand Down

0 comments on commit 9fc6c07

Please sign in to comment.