Commit History
-
Introduce a two-stage develop/main deploy flow (#27)
Unverified signature* Set up develop/main two-stage deploy: retarget dev-en to develop, add prod-en workflow develop -> dev-en Space (staging), main -> prod-en Space (release). See #26 for the release flow design. * Centralize print_*() logging functions in logging_utils.py (#29) Consolidates the named print_*() functions that #23 extracted in model_loading.py, inference.py, examples_ui.py, image_codec.py, and the qwenimage attention/pipeline modules into logging_utils.py, alongside the print_log_*() functions already there, so all logging lives in one file instead of being scattered per-module. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> * Rename dev-en's repo variable from HF_SPACE_ID to HF_SPACE_ID_DEV_EN (#30) Matches the <ENV>_<LANG> naming already used by HF_SPACE_ID_PROD_EN and HF_SPACE_ID_PROD_JA — the bare HF_SPACE_ID for dev-en was the odd one out. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> * Extract _InferTimer into a generic Timer in timing.py (#32) print_timi…6e3ec3e
-
Extract print() calls into named print_*() functions (#23)
Unverified signatureGroups the scattered logging statements across model_loading.py, inference.py, logging_utils.py, image_codec.py, examples_ui.py, and the qwenimage attention/pipeline modules into one dedicated function per message, making each log line easy to find, name, and reuse. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>98269eb -
Enforce strict typing on Python code with mypy (#20)
Unverified signature* Enforce strict typing on Python code with mypy Adds mypy --strict configuration scoped to the project's own code (app.py, inference.py, model_loading.py, logging_utils.py, dimensions.py, mode.py, image_codec.py, examples_ui.py, tests/), excluding qwenimage/ since it's vendored from HuggingFace diffusers rather than code we own. Fully annotates the in-scope modules and tests, and enforces the check going forward via a GitHub Actions workflow and a local pre-commit hook. Fixes #19 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * Move mypy's scoped file list into pyproject.toml CI and pre-commit invoked mypy with the same long, repeated list of files on the command line. mypy already supports a `files` setting in [tool.mypy], so both call sites now just run `uv run mypy` with no args. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>698eb37 -
Split app.py into cohesive modules (#17)
Unverified signatureapp.py mixed five unrelated concerns in one 733-line file: env/model startup, base64<->PIL image codec, example/suggestion HTML building, per-request inference orchestration, and Gradio UI wiring. Split each into its own module (image_codec.py, examples_ui.py, model_loading.py, inference.py) so app.py is left as thin UI assembly + entrypoint. No behavior changes: every function/class from the original app.py is preserved verbatim in its new home (verified via a def/class-name diff), and the existing test suite still passes unchanged. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>63be854