Spaces:
Runtime error
Runtime error
Commit History
-
Add pre-commit black formatter and apply initial formatting
Adds .pre-commit-config.yaml pinned to black 24.10.0 and [tool.black] config (line-length=88, target-version=py310) in pyproject.toml. Adds pre-commit to dev dependencies. Runs black --all-files to bring the existing codebase into conformance. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>db79f31
-
Add inference logging to HuggingFace dataset
Logs each swap (target, sources, result, indices, duration, success/error) as a Parquet row to a private HF dataset via a daemon thread so it never blocks the response. Prunes files older than LOG_MAX_DAYS and squashes repo history once per day. Skips silently when HF_TOKEN / LOG_DATASET_REPO are unset. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c4cb115
-
Remove inference logging and pyarrow dependency
Images are no longer stored — all processing is transient in memory, which avoids the GDPR concerns around persisting biometric data without user consent. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>381b753 -
Add unit tests for app.py and logging_utils.py (74 tests, all passing)
Adds pytest to requirements.txt, conftest.py with sys.modules mocking to prevent heavy model/GPU startup during tests, and test suites covering all pure functions plus mocked GPU paths in app.py and logging_utils.py. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>3b0f3e3