1. Learn
  2. /
  3. Courses
  4. /
  5. Deploying AI into Production with FastAPI

Connected

Exercise

Logging time to load a model

You are building a FastAPI app to classify penguins, and you'd like measure the time it takes to load the model and log it.

Instructions

100 XP
  • Load the uvicorn error logger.
  • Log the process time to load the model at the INFO level.