Repository navigation
Rework demo READMEs and web pages: why each provider, one shared look - #9
Merged
Merged
Conversation
A topic goes to a Tavily search. A Nebius LLM (gpt-oss-120b, falling back to Qwen) writes a structured script: a headline, a narration of 34 words or fewer, and 3 shots. Pruna p-video renders the 3 clips in parallel while Gradium reads the narration. ffmpeg crops them to 720x1280, adds captions and an "AI-generated" label, and lays the narration over the clips' own audio at 20%. Everything goes through Eden AI with one key; script.md records the sources, timing and cost. Tested with a real key: 31 s end to end for $0.32 per video. The first real run (64 s, captions overflowing, a 5 s frozen tail) led to the gpt-oss default, caption auto-sizing and narration trimming. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- make_video() now runs the pipeline and reports each step as it finishes. The CLI prints the updates; the web app streams them. - app.py: POST /api/run streams one JSON object per line, and /out/ serves the clips and the final video. The page reads the stream with fetch, not EventSource, because EventSource reconnects when the stream ends and would silently start another billed run. - static/index.html: topic box, step checklist and live timer, 3 clip slots that play as each Pruna clip lands, and the final 9:16 video with its sources and the time and cost of every call. - Each clip is downloaded and announced as soon as it's ready. ffmpeg runs in a thread, and each run gets its own timestamped folder. Tested with a real key through the web view (44 s, $0.32) and the CLI (29 s, $0.32); streaming and validation were checked offline with fakes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
READMEs (all three demos, plus the root and the voice ARTICLE): - "At a glance" (providers, time and cost per run, how it runs, endpoints) and "Why these providers": each provider's role in that demo, backed by our measured numbers, with vendor claims attributed. - The root README gets a "Providers in this cookbook" table. - Fix stale details: per-run timings, output folder naming, the vendor count in the article, and how the voice demo now serves audio. Web pages (voice-web-research, news-to-video): - One shared look: an Eden AI Cookbook header, provider chips, a live pipeline strip whose stages light up with their provider and time, and a footer explaining the one-key, one-bill setup. - Voice: the pipeline labels follow the provider dropdowns, a failing stage is marked, and malformed source URLs no longer break rendering. - News: the step checklist becomes the same pipeline strip, and the stage that fails is marked. Tested in Chrome against the mock and fake backends: both flows, the error paths, and audio and video playback, including a real Gradium streaming WAV repaired by the backend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This builds on #8 (news-to-video). Merge #8 first; this PR's diff will then show only the rework commit.
READMEs
Web pages
Upstream Watch has no web page: it runs as a GitHub Action, so its README is the only change there.
Testing
Tested in Chrome against the mock and fake Eden AI backends, so no billed calls:
🤖 Generated with Claude Code