ipjrb120803/circuitscope
0
1"""Hugging Face Space entrypoint.2 3Serves the CircuitScope FastAPI backend (live probing for all bundled models)4with the prebuilt frontend mounted at /. HF Spaces runs `python app.py` (or the5uvicorn command in the Dockerfile) on port 7860.6 7Models download from the HF Hub on first request and are cached on the Space8disk; the free CPU tier sleeps after inactivity and wakes in ~30s.9"""10import os11import uvicorn12 13if __name__ == "__main__":14 port = int(os.environ.get("PORT", 7860))15 uvicorn.run("backend.app.main:app", host="0.0.0.0", port=port, workers=1)16 