chinese-translator-paste / requirements.txt
algorembrant's picture
Upload 8 files
b03b79f verified
# ════════════════════════════════════════════════════════════════════════
# ChineseFileTranslator v1.0.0 β€” requirements.txt
# Author: algorembrant
# ════════════════════════════════════════════════════════════════════════
# Install all core dependencies:
# pip install -r requirements.txt
#
# For offline translation backend (Helsinki-NLP MarianMT):
# CPU: pip install torch --index-url https://download.pytorch.org/whl/cpu
# CUDA: pip install torch --index-url https://download.pytorch.org/whl/cu121
# Then:
# pip install transformers sentencepiece sacremoses
#
# Platform note:
# On Linux/Mac, keyboard events require no extra steps.
# On Windows, run the terminal as Administrator if hotkeys fail.
# ════════════════════════════════════════════════════════════════════════
# ── Core translation backend ──────────────────────────────────────────────
deep-translator>=1.11.4
# ── Progress bar (optional but recommended) ───────────────────────────────
tqdm>=4.66.0
# ── Clipboard support (optional) ─────────────────────────────────────────
pyperclip>=1.8.2
# ── Offline translation backend (optional) ───────────────────────────────
# Uncomment the lines below OR follow the install note above for PyTorch.
# transformers>=4.40.0
# sentencepiece>=0.2.0
# sacremoses>=0.1.1
# torch>=2.2.0 # <-- install separately with correct CUDA URL