Spaces:
Running on Zero
Running on Zero
A newer version of the Gradio SDK is available: 6.25.0
AGENTS.md β AI Creative Studio (abalanescu/flow)
Mission: Turn the HF PRO subscription into a working multi-modal showcase that uses BOTH resources: ZeroGPU (40 min/day A100) + Inference API (~$2/month credit).
The two HF resources (know the difference)
| Resource | What it runs | How it's billed | In this repo |
|---|---|---|---|
| ZeroGPU | Local GGUF models via @spaces.GPU |
40 min/day of A100, free | Gemma 4 26B Heretic (uncensored) chat |
| Inference API | Serverless hosted models | ~$2/month credit | FLUX.1 image gen + Whisper transcription |
Rule: ZeroGPU = local GGUF inference. Inference API = serverless FLUX/Whisper.
Never mix them up. Both are already wired in app.py.
Environment
HF_TOKENis exported in the shell and valid for userabalanescu. Use it for all HuggingFace API calls. Do NOT hardcode it in files.- GGUF models are mounted at
/dataon theabalanescu/flowSpace. - Default model:
gemma-4-26B-A4B-it-ultra-uncensored-heretic.i1-Q4_K_M.gguf
Memory (Memrize)
Project memory lives in .memrize/memrize.db. Track progress there:
~/projects/memrize/target/release/memrize remember <key> <value>
~/projects/memrize/target/release/memrize pin <rule>
~/projects/memrize/target/release/memrize stats
App structure (app.py)
5 tabs, each labeled with which resource it uses:
- Gemma Chat (ZeroGPU) β uncensored multi-turn chat
- FLUX Image Gen (Inference API) β text-to-image
- Whisper Transcribe (Inference API) β audio-to-text
- Voice to Art (BOTH) β Whisper β Gemma β FLUX pipeline
- Prompt Enhancer (BOTH) β Gemma enhances prompt β FLUX renders
Workflow for agents
- Read
GOAL.mdfor current milestone. - Check
.memrize/memrize.dbfor prior decisions/facts. - Make changes, verify with
python3 -m py_compile app.py. - Record progress in memrize.
- Commit as you go.
Guardrails
- Never hardcode
HF_TOKENin source files. - Never commit
.memrize/secrets or the DB if it contains sensitive data. - Keep the resource labels accurate in the UI so users track their budget.