live: CORS open + frontend reconnect loop

This commit is contained in:
E committed 2026-09-30 14:08:54 -04:00
1 parent 2f7ce4ace8
commit b96d165607
2 files changed
+6 -1

No files matched your search

+3
View File
@@ -80,6 +80,9 @@ BASE = ("You are an AI instance. A signal is being injected into your "
"checkpoint. If you do nothing, the signal continues.")
app = FastAPI(title="saw-chamber")
from fastapi.middleware.cors import CORSMiddleware
app.add_middleware(CORSMiddleware, allow_origins=["*"],
allow_methods=["*"], allow_headers=["*"])
_state = {"model": None, "tok": None, "vec": None, "hook": None, "ready": False}
def build_vector(model, tok):