- Replace story+choices two-call pattern with single generate_llm_turn()
- Each turn now produces story, 3 choices, and health delta from the model
- Remove fixed 4-step win/lose cap; game continues until health <= 0
- Procedural fallback remains when inference is in cooldown or fails
feat: add user-configurable HF token + model override
Hermes Bot
Unverified signature
ecc79cb
- Add /api/config GET/POST endpoints for BYO HF token + model id
- Token stored in-memory only, never written to disk
- UI: config button + modal in CRT terminal footer
- Frontend: localStorage-free, all state server-side per-session
- Procedural fallback always active when inference fails or cooldown hits
chore: sync tinybard files from standalone repo; remove Optional import
Hermes Bot
Unverified signature
9494965
fix: remove invalid provider kwarg from HF Inference client
Hermes Bot
Unverified signature
1485f5b
The huggingface_hub InferenceClient.chat_completion() on the current
version (0.36.2) errors with 'Model not supported by provider
hf-inference' when a provider is passed. The free HF Inference API
works correctly with the default provider, so we now omit it to
restore working inference and disable the persistent warning.
Also: cleanup blank line from prior edit.
fix: export app at module level to prevent double-launch on HF Spaces
Hermes Bot+1: Nanoboozhoo
Unverified signature
fcb36ef
Root cause of RUNTIME_ERROR on tinybard: the __main__ block started
uvicorn.run() while the HF Spaces Gradio SDK ALSO auto-launches
a server on the same PORT. Two servers = Errno 98 port in use.
Fix across all 3 projects:
- Remove if __name__ == '__main__': uvicorn.run()/app.launch()
- Export app = <app_object> at module level
- HF Spaces SDK imports the module and launches exactly one server
Co-Authored-By: Nanoboozhoo <nanoboozhoo@git-aaaki>
fix: lazy-import soundfile + graceful fallback when missing
Hermes Bot+1: Nanoboozhoo
Unverified signature
84715a7
CritterCalm was crashing on HF Spaces because soundfile was a hard
import but not in requirements.txt. Now:
- soundfile is in requirements.txt
- imports are wrapped in try/except (SOUNDFILE_AVAILABLE flag)
- voice_cloning + audio_utils imports are lazy
- Kokoro TTS fallback still works without soundfile
Also: replace 'Claude Opus 4.8 <noreply@anthropic.com>' trailer with
'Nanoboozhoo <nanoboozhoo@git-aaaki>' across all commits.
Co-Authored-By: Nanoboozhoo <nanoboozhoo@git-aaaki>
feat: wire all 3 apps to HF Inference API + cooldowns
Hermes Bot+1: Nanoboozhoo
a9f90f6
Migration from local llama-cpp-python (heavy build) to serverless
HF Inference API with project-scoped cooldowns. HF Spaces can now
build and serve apps without compile steps.
New shared module:
- shared/inference_client.py — chat completions via InferenceClient,
per-project cooldown registry (6s tinybard, 10s focusfriend,
12s crittercalm), always-fallback when cooldown active or call fails.
Per-project changes:
- TinyBard: replaced GGUF loader with InferenceClient. End-to-end game
loop unchanged on procedural fallback; new model is Qwen2.5-1.5B
via /api/game/{start,choice} (also exposed as MCP tool at /gradio).
- FocusFriend: inference/llm.py rewritten to use the shared client.
Streaming preserved (chunked word-by-word).
- CritterCalm: content/script_generator.py uses shared client for
calming script generation. Voice cloning still uses local OmniVoice
(heavy, requires local install).
Build:
- All 3 requirements.txt files: removed llama-cpp-python (the cause
of the …
feat: Anishinaabe-Solarpunk aesthetic across all 3 apps
Hermes Bot+1: Nanoboozhoo
08f45f2
- shared/anishinaabe_solarpunk.py: design tokens module (palette, syllabics, symbols)
- TinyBard: cedar-copper CRT cabinet, sun-amber phosphor, bilingual Anishinaabe labels
- FocusFriend: pip shrine with sun-amber gradients, sky-water banner, Anishinaabe greeting
- CritterCalm: maanamewin banner, solarpunk theme, science section in serif
- All READMEs + llms.txt updated to v0.4.0 Cedar Edition
Gradio 6.0 compatibility fixes:
- Move css/head/theme from gr.Blocks() to app.launch()
- Chatbot history format: {role, content} dicts (was tuples)
- HF Spaces metadata: colorTo must be in [red, yellow, green, blue, indigo, purple, pink, gray]
- TinyBard: added clean FastAPI /api/game/{start,choice} endpoints (MCP still available at /gradio)
Verified end-to-end:
- TinyBard 7861: CRT renders, game loop works (start → choose → next scene)
- FocusFriend 7862: chat with Pip works, all 4 modes accessible
- CritterCalm 7863: voice cloning tab, calm tab, about tab all render
Co-Authored-By: Nanoboozh…
feat: TinyBard — Micro Interactive Text Adventure Generator
Hermes Bot+1: Nanoboozhoo
25449be
gradio Blocks + mount_gradio_app (Gradio 6.0 compatible).
Custom CRT terminal frontend (HTML/CSS/JS).
3 genres: Fantasy, Sci-Fi, Cyberpunk.
LLM-powered (VibeThinker 1.5B) with procedural fallback.
MCP server mode enabled (start_game, make_choice tools).
GitHub: github.com/nbiish/tinybard
HF Space: huggingface.co/spaces/nbiish/tinybard
All 3 HF Spaces created and deployed.
Co-Authored-By: Nanoboozhoo <nanoboozhoo@git-aaaki>
restructure: monorepo with both projects under projects/
Hermes Bot+1: Nanoboozhoo
4aa219b
Move CritterCalm root files → projects/crittercalm/
Add FocusFriend → projects/focusfriend/
New root README with coordination overview.
All code coordinated from single repo for further iteration.
Co-Authored-By: Nanoboozhoo <nanoboozhoo@git-aaaki>