# GLM-OCR Backend — Python dependencies # Install: pip install -r requirements.txt # Web framework fastapi==0.115.5 uvicorn[standard]==0.32.1 python-multipart>=0.0.12 # GLM-OCR requires transformers >= 5.3.0 # Install latest directly from GitHub to be safe: # pip install git+https://github.com/huggingface/transformers.git transformers>=5.3.0 # ML torch>=2.2.0 torchvision>=0.17.0 accelerate>=1.1.0 # Image Pillow>=10.4.0 # Misc pydantic>=2.9.0 safetensors>=0.4.5 einops>=0.8.0 sentencepiece>=0.2.0 tiktoken>=0.7.0