# --- HF Space runtime (CPU) ------------------------------------------------- # app.py works on both Gradio 5.x and 6.x; README sdk_version pins the Space. gradio>=5.0.0 ultralytics>=8.4.0 # YOLO26 support sahi>=0.11.21 huggingface_hub>=0.26.0 opencv-python-headless numpy Pillow pyyaml jinja2>=3.1.2 # pandas/Styler backend used by gr.Dataframe rasterio>=1.3 # GeoTIFF reading + CRS reprojection for the map shapely>=2.0 # ZeroGPU: allocates a GPU only inside @spaces.GPU-decorated functions. spaces>=0.30.0 # Keep the default (CUDA) torch wheels — ZeroGPU needs them. If you ever move # this Space to cpu-basic/cpu-upgrade, add: # --extra-index-url https://download.pytorch.org/whl/cpu torch torchvision