This is the standalone Python server for the v5 Neural Network AI.
- Create a new Python Replit (use the Python template)
- Copy ALL files from this folder to your new Replit
In your new Replit, add the following secret:
SENSEI_SECRET- Use the same value as your main Board Game Dojo project
The dependencies will install automatically when you run the project.
If needed manually: pip install flask onnxruntime numpy
Click "Run" - the server will start on port 5001.
- Go to the "Deployments" tab
- Choose "Reserved VM" or "Autoscale"
- Deploy the project
To use sensei.boardgamedojo.com:
- In Replit Deployments, click "Add Custom Domain"
- Enter: sensei.boardgamedojo.com
- Copy the CNAME value Replit provides
- In your DNS provider (for boardgamedojo.com), add a CNAME record:
- Name: sensei
- Value: (the value from step 3)
- Wait for DNS propagation (can take up to 24 hours)
GET /health- Health check (returns status and model info)POST /evaluate- Evaluate a game state (requires HMAC authentication)
SENSEI_SECRET(required) - Shared secret for HMAC authenticationPORT(optional) - Server port, defaults to 5001MODEL_VARIANT(optional) - "int8" or "float", defaults to "int8"
server.py- Main Flask serversensei_v5_int8.onnx- Quantized model (smaller, faster)sensei_v5_float.onnx- Full precision model (backup)requirements.txt- Python dependencies