I built an ofrenda card maker and spent most of the day stopping Gemma from making things up
说明与用途
一个基于浏览器的应用程序记录关于已故亲人的故事,使用 Whisper 进行转录,并用 Gemma 生成卡片内容。通过自定义检查,确保仅使用故事中准确的细节,并让用户审核任何被标记的项目。
问题
Ensuring AI-generated card content accurately reflects the story and avoids incorrect or disliked items.
结果
The app now reliably produces cards that reflect the original story, with incorrect or disliked items flagged for user review, all without uploading data.
工作流
- Record or upload a voice memo/video of a story about a loved one.
- Whisper transcribes the audio into text, allowing manual corrections.
- Gemma generates suggested foods, drinks, music, sayings, and a key sentence from the story.
- Custom JavaScript checks each suggestion against the story text and disliked phrases.
- Marked suggestions are displayed as chips; the user can accept or reject them.
- The final card is rendered with papel picado, photo or candle, marigolds, and the chosen sentence, downloadable as PNG or JSON.
- All models run in Web Workers; no data is uploaded.
证据
Both models run in the browser tab. The recording, the photo and the story aren't uploaded anywhere.
Gemma kept putting the wrong things on the card
When a suggestion fails a check, the page marks it and leaves the decision to you
- 记录日期: 2026-11-01T17:43:44.367Z