Spaces:
Sleeping
Sleeping
Commit History
-
fix: prepend HF frontmatter from spaces.yaml during deploy, not on main
Priya MonishaREADME.md on main was just cleaned of the YAML frontmatter for a better GitHub display. The deploy workflow now reconstructs it from spaces.yaml (the existing source of truth) for the Space copy only, so both the clean GitHub README and the working Space stay satisfied.09e8c4a -
ci: auto-deploy to HF Spaces with lean requirements on every push to main
Priya MonishaReplaces the manual spaces-deploy branch dance with a GitHub Action: copies requirements-spaces.txt over requirements.txt and force-pushes to the spaces remote. requirements-hf.txt is superseded (it still listed torch/ultralytics/huggingface_hub, none of which the demo-mode Streamlit pages actually import — no_model_in_pages rule keeps the UI HTTP-only).3ec7f3e
-
section-12: CI + Tests + HuggingFace Deployment
Priya Monisha- pytest suite: 57 tests, 0 failures across health/classify/detect/drift/redis - RedisCache: _client= kwarg (keyword-only) for fakeredis injection in tests - conftest.py: MockClassificationModel (real nn.Module), synthetic confidence baseline, raise_server_exceptions=False, session-scoped test_image_bytes - pytest.ini: pythonpath=., coverage xml+term, strict-markers - .github/workflows/ci.yml: ruff lint+format → pytest, pip cache, coverage artifact - spaces.yaml: streamlit sdk, python_version=3.11, cpu-basic, 5 CV tags - packages.txt: libgl1, libglib2.0-0 for HF Spaces build - requirements.txt: fakeredis>=2.23.0 added to Testing section4d14020