~/talk

Building a Model Prediction Server

Talkat PyCon US 2023 · 2023-04-19..04-27· [web-platform, python]
links:none on file
slides:none on file

Starts from a trained scikit-learn model (an Iris classifier the uploader notes as 100% accuracy), loads the pickle via importlib.resources, and embeds it in a small FastAPI app that exposes a status route and a POST /predict endpoint. Input/output schemas use pydantic models, pytest fixtures test the happy paths, and the app serves real-time predictions (e.g. setosa, versicolor, virginica) with automatic OpenAPI docs; the demo runs locally and the model actually returns plausible labels.

AI-written summary · about

  1. 0:00Welcome
  2. 3:56Project workspace setup
  3. 28:59Simple FastAPI app
  4. 54:20Pydantic data models
  5. 1:11:07Scikit-learn model integration
  6. 1:33:36Prediction server finalized
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.