someone-in-the-world Claude Sonnet 4.6 commited on
Commit
ca50d09
·
1 Parent(s): a532114

Add 2K/4K resolution selector to Advanced Settings

Browse files

- 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>

5 files changed +36 -5
Files changed (5)
app.py+9-3
static/app.css+10
static/gallery.js+7
static/run_preprocess.js+3-2
templates/app.html+7