4.2 MiB materialized
4.1 MiB stored
README.md
Titanic inference example
A FastAPI inference server.
Pre-requisites
pip install -r requirements.txt
Usage
Train
python src/train.py
Serve
uvicorn src.serve:app --reload
Serve mounted
git xet mount https://xethub.com/xdssio/titanic-server-example.git server
uvicorn server.src.serve:app --reload
# Checkout http://127.0.0.1:8000/docs or run:
curl -X 'POST' \
'http://127.0.0.1:8000/predict' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"Sex": "male",
"Age": 22,
"Fare": 7.25,
"Embarked": "S"
}'
umount server
File List | Total items: 8 | ||
---|---|---|---|
Name | Last Commit | Size | Last Modified |
data | |||
models | |||
monitoring | |||
src | |||
.gitattributes | |||
.gitignore | |||
README.md | |||
requirements.txt |
Repository Size
Materialized: 4.2 MiB
Stored: 4.1 MiB
Activity 6 commits
-
committed 5fc10b8eea 5mo ago
-
committed 8d307bb1de 6mo ago
-
committed 05dc67ab6f 6mo ago
-
committed 937d6d87a2 6mo ago
-
committed 07e5cb063c 6mo ago