CoolFace
Apppublic

ipjrb120803/circuitscope

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
app.py16 linesDownload Raw Back to root
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