SPIRA v2: entropy-patch tokenization + hierarchical dopamine-gated spiking cortex + hippocampal one-shot memory with replay consolidation
032a961 verified Download web/src/lib/db.ts from thefinalboss/SPIRA: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/thefinalboss/SPIRA/resolve/main/web/src/lib/db.ts
- Command line
-
hf download hf://thefinalboss/SPIRA/web/src/lib/db.ts
-
curl -L -o db.ts https://huggingface.co/thefinalboss/SPIRA/resolve/main/web/src/lib/db.ts
299 Bytes
| import { PrismaClient } from '@prisma/client' | |
| const globalForPrisma = globalThis as unknown as { | |
| prisma: PrismaClient | undefined | |
| } | |
| export const db = | |
| globalForPrisma.prisma ?? | |
| new PrismaClient({ | |
| log: ['query'], | |
| }) | |
| if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = db |