Download deploy/huggingface/README.md from NAP1320/RotNot: direct link, hf CLI and curl.
- Browser
- Download file 1.66 kB
-
https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/deploy/huggingface/README.md
- Command line
-
hf download hf://spaces/NAP1320/RotNot/deploy/huggingface/README.md
-
curl -L -o README.md https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/deploy/huggingface/README.md
title: RotNot
emoji: 🧠
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
RotNot 🧠
A gamified cognitive-fitness web app — six exercise categories plus a Coding Training module (code creation, debugging, AI code review, and architecture discussions) with test-driven and LLM-judge grading.
This Space runs the Next.js app from a Docker container. The database is an in-container SQLite file, migrated and seeded on each boot.
Configuration
The app runs the AI features on a Hugging Face token (no Anthropic key needed) by routing Anthropic-schema calls through HF's OpenAI-compatible router. Set these as Space secrets / variables (Settings → Variables and secrets):
HF_TOKEN— secret. A Hugging Face token (free). Powers all AI features (Feynman, Debate, Reading, Coach, and the Coding written-answer judge). Anyone can use their own token. Without it, Coding's written grading falls back to an offline heuristic and other AI features are disabled.HF_MODEL— variable (optional). The open instruct model to serve, e.g.meta-llama/Llama-3.1-8B-Instruct(default),meta-llama/Llama-3.3-70B-Instruct, orQwen/Qwen2.5-72B-Instruct. Larger models follow the JSON-output prompts more reliably.LICHESS_TOKEN,CHESSCOM_USERNAME— optional (chess puzzles / ratings).
To use Anthropic directly instead, set
ANTHROPIC_API_KEYand leaveHF_TOKENunset.HF_TOKENtakes priority when both are present.
Note: container storage is ephemeral — XP/progress resets when the Space rebuilds or restarts. Attach HF persistent storage if you want it to persist.