Commit History
-
Sync develop into main (#52)
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…8c202fb
-
Add copy-prompt button and improve mobile touch targets/layout
Fixes the per-thumbnail remove button being invisible on touch devices (it only appeared on :hover), and tightens spacing/tap-target sizing for the toolbar, sliders, and buttons below 640px. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>dbd99af
-
Reduce default GPU duration for High Detail mode from 60s to 30s
Inference has gotten faster, so the prior 60s default now overshoots actual runtime, same reasoning that dropped Fast mode's default to 15s. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>106074d -
Sync visible GPU duration slider default to Fast mode's 15s
templates/app.html still hardcoded the visible slider's initial value at 30, and mode_toggle.js only applied the mode's duration on a mode-button click, not on page load, so the UI kept showing 30s after 8a3b1b0 dropped the actual default to 15s. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>88ef5d4
-
Reduce default GPU duration for Fast mode from 30s to 15s
Fast mode uses lower resolution, fewer steps, and no text encoder offload, so 30s of reserved ZeroGPU time was more than actually needed. Closes #15 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>8a3b1b0 -
Speed up fast mode: lower resolution cap, skip needless VAE tiling, fewer steps
Fast mode's 768px (was 1024px) output now stays under the VAE's tiling threshold, so it decodes in a single pass instead of a tiled decode with blend overhead that was only ever needed for high-detail's 2048px case. Also gives fast mode a lower default step count (3 vs 4), following the existing mode-scoped-default pattern already used for GPU duration. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>9fcf338
-
Load model on CPU at startup to bypass slow ZeroGPU disk packing
spaces 0.51.0 (released 2026-07-10) switched to disk-based tensor packing (~19s pack + ~19s unpack per inference), breaking the ~7s inference that worked with spaces 0.50.4's pinned-memory approach. HuggingFace force-injects spaces==0.51.0 so pinning requirements.txt doesn't help. Instead: - Load transformer and pipeline on CPU at startup (ZeroGPU has nothing to pack since no tensors are on GPU) - pipe.to(device) inside @spaces.GPU: ~3-4s PCIe transfer vs ~19s disk - pipe.to("cpu") in finally block so ZeroGPU has nothing to repack Also reverts bad spaces==0.50.4 pin (build error) and raises GPU duration defaults to accommodate the explicit model-move time. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>6c0477d
-
Set default GPU duration for high-detail mode to 40s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>96b6246
-
Set default GPU duration for high-detail mode to 30s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>9f5cd46
-
Fix Japanese IME exits on iPhone by checking e.isComposing
Skip the Gradio sync while an IME composition is active so that iOS Safari does not kill the keyboard session mid-kanji input. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>8a5d3bd
-
Add header link to Selectable Face Swap space
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>312e1b4
-
Add user-adjustable GPU Duration slider to Advanced Settings
Exposes the spaces.GPU duration as a UI slider (10–120s, step 5s) so users can tune quota usage per request. Switching modes auto-resets the slider to its default (fast=20s, high_detail=60s). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>b36328a
-
Add deformed to negative prompt
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>e8b6f51
-
Wrap mode_toggle.js as arrow function to match Gradio js= convention
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>8b178bf -
Load mode toggle JS via demo.load instead of stripped <script> tag
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>a3f2ffd -
Add Fast / High-Detail mode toggle (768px vs 2048px output)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>f333d01
-
Move privacy policy inline as collapsible section at bottom of app
Removes PRIVACY.md (not served by HF Spaces) and embeds the full policy in app.html as a <details> element with a matching CSS style. The notice link now anchors directly to the section. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>e92bb7f
-
Revert "Add step-progress bar to inference loader"
This reverts commit 4382eeb6464035463c7193a46a68a60305a37f82.fe3cc96 -
Add step-progress bar to inference loader
- Call progress() in _step_cb so Gradio sends per-step events to client - Make loader-bar-fill width-driven (0→100%) with 0.5s transition - watchProgress() in wire_outputs.js wraps __clickGradioRunBtn/__hideLoader to reset/complete the bar and mirrors Gradio DOM progress to the fill Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>4382eeb -
Restore blank line in app.css removed during revert
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c6cb9f9 -
Revert 2K/4K resolution selector (4K too slow for generation)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>0aa155d -
Add 2K/4K resolution selector to Advanced Settings
- Add `_resolve_output_dimensions` helper to encapsulate max_dim parsing - Wire `max_output_dim` hidden Gradio Textbox (defaults to MAX_OUTPUT_DIM) through infer - Add res-btn toggle group in Advanced Settings panel (HTML + CSS) - Track selection in `window.__setResolution` / `window.__selectedMaxDim` (gallery.js) - Pass selected resolution through run_preprocess.js to the backend Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>ca50d09
-
Change theme colors from blue-dark to hot pink
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>b2a7efc -
Move negative prompt into static/negative_prompt.txt
Editorial content — easier to tune without touching inference logic. Read once at startup alongside other static files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>b00e42b -
Refactor: extract inline CSS, JS, and HTML from app.py into static files
Move all inline content out of app.py into dedicated files: - static/app.css — all styles - static/gallery.js — image gallery and UI wiring - static/wire_outputs.js — output/seed/example result watchers - static/run_preprocess.js — pre-flight JS for run button - templates/app.html — HTML shell with named .format() placeholders Named keyword arguments (e.g. {fire_logo_svg}, {example_cards_html}) are used in the template so each substitution site is self-documenting. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>28ae1ac