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