From 669b6075c089269e4196c094d9eb75c3bcfde7dc Mon Sep 17 00:00:00 2001 From: hienp Date: Thu, 4 Jun 2026 14:53:25 +0700 Subject: [PATCH] update token --- translate_epub.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/translate_epub.py b/translate_epub.py index 4accf5a..e948905 100644 --- a/translate_epub.py +++ b/translate_epub.py @@ -41,6 +41,9 @@ from tqdm import tqdm # ────────────────────────────────────────────────────────────── # Configuration Defaults # ────────────────────────────────────────────────────────────── +import os +os.environ["HF_TOKEN"] = "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" + DEFAULT_MODEL_ID = "Qwen/Qwen2.5-72B-Instruct" CHUNK_SIZE = 5 # paragraphs per inference call MAX_NEW_TOKENS = 8192 # max tokens the model generates per chunk