Generates stories, poems and completions from a prompt — locally with a
seeded Markov generator, or in "quality" mode through the Gemini API when a
GEMINI_API_KEY is configured.
pip install -r requirements.txt
python -m text_generation_gemini generate --prompt "the lighthouse" --seed 42
python -m text_generation_gemini generate --prompt "a letter from the coast" --mode qualitymarkov.py— order-2 Markov chain trained on a bundled literary corpus (seeded, deterministic).generator.py— a thinClientwrapper around the Gemini API with a local fallback (generate_local) used when no key is set.
Copy .env.example to .env and set GEMINI_API_KEY to enable quality
mode. Local mode works fully offline.
MIT