# torch is a preinstalled cached layer on ZeroGPU -> do NOT pin it. # torchvision is NOT in the base layer -> add it unpinned. torch torchvision # GLaMM needs this exact transformers (LlavaConfig registration + llava arch). transformers==4.37.0 tokenizers==0.15.2 peft==0.5.0 # numpy<2 to avoid removed-API surprises with the pinned transformers. numpy<2 # opencv-python-headless (NOT opencv-python): hm_utils imports cv2 at module load, # and the non-headless build needs libGL.so.1 which is absent on the Space. opencv-python-headless pycocotools einops sentencepiece Pillow # huggingface_hub is pulled transitively; do NOT pin it (transformers 4.37 caps # it <1.0 and gradio's own bound must win). # spaces provides the ZeroGPU decorator; gradio version is pinned via README # sdk_version. Do NOT list gradio here. spaces