| # Real-model dependencies. | |
| # | |
| # These are now FOLDED INTO requirements.txt, because the Space serves the live | |
| # MiniCPM-V 4.6 model (ZeroGPU, RECALL_STUB=0) and a Gradio Space installs | |
| # requirements.txt — not this file. So requirements.txt is the single source of | |
| # truth for the real-model deps (transformers 5.x, torch, torchvision, accelerate, | |
| # sentencepiece, pillow, PyMuPDF, spaces); this file just installs it. | |
| # | |
| # Why the gradio==6.10.0 pin still holds with modern transformers: 6.10.0 allows | |
| # huggingface-hub<2.0 (i.e. hub 1.x), which MiniCPM-V 4.6's transformers 5.x wants. | |
| # Do NOT move to MiniCPM-V 4.6+ versions needing a different stack without | |
| # re-checking the resolve (verified on an HF Job: gradio 6.10 + transformers 5.12 | |
| # + hub 1.19 + torch 2.12). MiniCPM-V is loaded via the native | |
| # MiniCPMV4_6ForConditionalGeneration class (trust_remote_code=True). | |
| -r requirements.txt | |