Every rhyme rule I gave Gemma, it found a loophole. Catrina News turns today's tech headlines into Día de los Muertos calaveras
说明与用途
使用Gemma 3 12B生成西班牙语卡拉瓦拉诗歌,并通过Python脚本验证韵脚、音节数和内容规则,随后使用ElevenLabs合成音频的自动化流程。
问题
Automating the creation of satirical Spanish poems (calaveras) from daily tech news while ensuring strict rhyme, syllable, and content rules.
结果
The pipeline consistently produces 10/10 rhyme compliance, 9/10 1‑3 rhyme, and 34/40 syllable compliance, with 59 s per calavera, and eliminates disallowed content.
工作流
- Pull last 24h Spanish tech news via SerpApi Google News engine
- Filter headlines: drop real people, tragedies, violence, espionage, named nationalities
- Prompt Gemma to generate up to three calavera candidates per headline
- Run rima.py to check rhyme (lines 2 & 4), syllable count (7–9 per line), and banned words/sounds
- If a stanza fails, provide feedback to Gemma and retry up to three times
- Select best stanza per headline
- Add line‑by‑line English gloss
- Use voz.py to call ElevenLabs REST API and stitch audio clips
- Publish as a Posada‑style broadside on catrinanews.tech
证据
pulls the last 24 hours of tech news with SerpApi's Google News engine
lets Gemma pick the ones worth satirizing (and drops anything about real people or tragedies)
writes a calavera for each, with every rhyme and syllable checked by plain Python, not by the model
Gemma 3 12B + meter feedback + best‑of‑3: 10/10 rhyme 2‑4, 9/10 rhyme 1‑3, 34/40 syllables, 59 s
- 记录日期: 2026-11-02T05:29:13.394Z