Download README.md from SUPER321/anam_code: direct link, hf CLI and curl.
- Browser
- Download file 2.08 kB
-
https://huggingface.co/spaces/SUPER321/anam_code/resolve/main/README.md
- Command line
-
hf download hf://spaces/SUPER321/anam_code/README.md
-
curl -L -o README.md https://huggingface.co/spaces/SUPER321/anam_code/resolve/main/README.md
title: Anam Code
emoji: π§ββοΈ
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 7860
pinned: false
Anam avatar demo β Hugging Face Spaces deploy package
Self-contained copy of the anam (FastAPI backend + frontend) and agent (LLM +
local RAG server) apps, stripped of local caches/secrets, ready to push to a
Hugging Face Space.
What's in here
Dockerfile,start.shβ build the image and run both servers (agentinternally on port 8005,anampublicly on port 7860 β the port Hugging Face Spaces expects).anam/β the avatar app (frontend + backend in one FastAPI process).agent/β the LLM proxy used byanam's "Agent LLM" mode.scripts/create_vector_store.pyβ one-off script to create the persistent OpenAI vector store used by anam's local RAG (upload documents β search).
Deploy steps
1. Create the vector store (once)
pip install openai
OPENAI_API_KEY=sk-... python scripts/create_vector_store.py
Copy the printed vs_... id β you'll need it in step 4.
2. Create the Space
On huggingface.co β New Space β SDK: Docker β Hardware: CPU basic (free).
3. Push this folder to it
git init
git add .
git commit -m "Initial deploy"
git remote add hf https://huggingface.co/spaces/<your-username>/<space-name>
git push hf main
4. Add repository secrets
Space β Settings β Variables and secrets β New secret:
| Name | Value |
|---|---|
ANAM_API_KEY |
your Anam API key |
OPENAI_API_KEY |
your OpenAI API key |
OPENAI_VECTOR_STORE_ID |
the vs_... id from step 1 |
5. Done
The Space rebuilds automatically once secrets are set. Open the Space URL to verify.
Known limitation
anam/rag_state.json (native Anam-hosted RAG ids) and anam/telemetry_data.json
reset on every Space rebuild/restart β the free tier has no persistent disk. The
OpenAI-vector-store-backed local RAG (documents you upload via the UI) is not
affected by this β it survives restarts as long as OPENAI_VECTOR_STORE_ID stays
the same.