FastAPI is a powerful and modern Python framework for building APIs. It combines high performance with a developer-friendly interface, making it a go-to choice for both simple and complex projects. Its features, such as automatic validation, async support, and interactive documentation, contribute to its popularity among developers who need to build fast, reliable, and scalable APIs.
- uvicorn main:app --reload
- Server will start with above command, then visit - http://127.0.0.1:8000/docs
- Execute the post request for detecting the IRIS flower species with class probability and model accuracy
- Can also visit below urls and explore more of FastAPI
http://127.0.0.1:8000
http://127.0.0.1:8000/docs
http://127.0.0.1:8000/redoc