Spaces:
Running
Running
Commit History
-
deps: pin anthropic to the known-good version
ClaudeThe audit flagged the anthropic floor (>=0.49) as too old for the messages.parse(output_format=…) / parsed_output structured-output API the code relies on — a fresh install resolving an old version would crash every LLM call. Pin requirements.txt to the exact version the working deployment uses (0.116.0) for reproducible builds, and raise the pyproject floor to match (>=0.116) so an editable install can't pull something too old. https://claude.ai/code/session_01EM8jiYxdVFy1w3LeJ9GBJg43d625b
-
Pin Python version to <3.14 for local dev compatibility
Claudepydantic-core's Rust extension (via PyO3) doesn't support Python 3.14 yet. Add .python-version (3.11, matching Dockerfile) so pyenv/uv auto-select a compatible version, and tighten requires-python to fail fast with a clear error instead of a cryptic Rust build failure. https://claude.ai/code/session_01EGBMur51izertyiu7msWPQ135c4e5
-
Sync deps, format validation, /jobs workdir cleanup, timing tests
Claude1. pyproject.toml gains 'anthropic>=0.49' so 'pip install .' brings in the same dependency that requirements.txt declares. Previously fresh installs through package metadata silently lost the LLM feature even when the API key was set. 2. /jobs now wraps the file-save + form-parse phase in try/except so if anything fails between mkdtemp and worker handoff (disk full, bad max_frames value, copyfileobj raising), the workdir is shutil.rmtree'd before the 400 propagates. Mirrors the existing try/finally pattern in /process. Test guard added. 3. Both /jobs and /process now reject unknown 'format' values with a 400 instead of treating anything-not-review-or-single as zip. The CLI already validated this; the web layer now matches. Test guard added. 4. Five new test_scenes.py invariant tests pin the timing properties that align_segments depends on after frames are dropped: * indices contiguous from 0 * start_seconds strictly increasing * end >=…06c75aa -
Live progress bar (web SSE + CLI rich) and rename images dir to 'static'
ClaudePipeline progress ----------------- orchestrator.run_pipeline now accepts an optional ProgressCallback and emits ProgressEvent(percent, stage, message) at each major phase: scene_detect, filter, transcript, ocr (per-frame), render, done. Errors emit a final 'error' event so consumers always see a terminal state. Web UI ------ New POST /jobs spawns the pipeline in a background thread, returns {job_id, events_url, result_url} (HTTP 202). GET /events/{job_id} streams Server-Sent Events with progress payloads. GET /result/{job_id} hands back the prepared HTML or zip. The upload page (templates/index.html) now intercepts the form submit, hides the form, shows a <progress> element with stage chip + message, subscribes via EventSource, and on 'done' either navigates to the review HTML (review mode) or kicks off a download (single/zip). The original synchronous /process endpoint is kept for non-browser clients. CLI --- `vgm build` and `vgm export-metadata` now display a rich progress bar (…4b79268 -
Phase A: unified metadata schema + vgm CLI
ClaudeAdd a pydantic-backed PageMetadata schema (app/pipeline/metadata.py) with KeyTerm and MathEquation models, plus dump/load/migrate helpers. Existing browser-editor `.edits.json` is upgraded to schema v2 by migrate_v1_to_v2 — old saves still load. Extract the FastAPI handler body into a shared run_pipeline helper in app/pipeline/orchestrator.py so the same orchestration is reused by the new vgm CLI (typer-based). Subcommands: build, export-metadata, render-from-metadata; the last one re-renders HTML from the JSON exported by either the editor or the CLI. Segment now carries optional key_terms / math_equations / include fields and a new render_from_metadata function turns a PageMetadata back into renderable Segments. render_guide / render_review accept subtitle, module, mathjax, and mathjax_src so subsequent phases (math equations, key terms) just need template + UI work. Verified: all 30 pytest tests pass, including a round-trip test that runs the full pipeline on smaller.m4v + M14_L3…2636772 -
Build initial VideoGuideMaker MVP
ClaudeFastAPI web app that turns an instructional video plus VTT/SRT transcript into a WCAG 2.2 AA-ready HTML study guide. Pipeline: PySceneDetect + OpenCV for scene detection and frame sampling, Haar-cascade face detection to drop talking-head frames, Tesseract OCR for on-screen text, timestamp-based narration alignment, Jinja2 template with proper landmarks, headings, lang, skip link, time elements, and data-alt-draft="true" flags on auto-drafted alt-text. Output is either a self-contained HTML file (base64-inlined images) or a zip bundle (HTML + images/ folder). Includes unit tests for the transcript parser and HTML generator. https://claude.ai/code/session_01Q9yxSTNAMqkjcYLDJAbV3Zb6f361a