Spaces:
Sleeping

Claude commited on
Commit
31ce41a
·
1 Parent(s): 88d3d3b

feat: images-input UI — standalone /images upload page

Browse files

Adds a self-contained upload page for the images-input mode, kept
separate from the video form so the working video flow is untouched.

/images page:
* Multi-image file input + transcript input + title + optional API key.
* AI toggles: section titles, scene description, alt-text, on-screen
text, math equations. Topic segmentation is intentionally excluded —
re-bucketing hand-picked slides into topics fights the point of
curating exact slides (the endpoint's topic flags are always sent
false from this page).
* Output format picker (editor / single HTML / ZIP).
* Submit posts to /jobs/from-images, subscribes to the same SSE
progress stream, and on completion navigates to the editor (review)
or downloads (single/zip) — reuses the existing job/events/result
infrastructure end to end.
* Accessible: skip link, labelled fields, aria-live progress panel,
visible focus, theme-consistent styling. Clears the API key from the
DOM after capture.

Also: a cross-link on the main video page ("No video, just slide
exports? Build from slide images…") so the mode is discoverable, and a
back-link from /images to the video uploader.

https://claude.ai/code/session_01EM8jiYxdVFy1w3LeJ9GBJg

3 files changed +249
Files changed (3)
app/main.py+5
app/templates/images.htmlAdded+243
app/templates/index.html+1