airbnb_price_prediction-using-FastAPI-Azure-deployment

capstone project for airbnb price prediction

#To initiate the machine learning model this create pickle file which will be used to predict prices

python model.py

To initiate the the Fast API

python app.py #has used local host with port 8000 localhost:8000 in browser will open the app

could use localhost:8000/docs to input the details

update startup command in azure webapp in App service -> Configuration -> General settings

gunicorn -w 4 -k uvicorn.workers.UvicornWorker --bind "0.0.0.0:8000" --log-level debug app:app #8000 is the port to connect to

image

After successfully deployed. Input given in post command

image

The output of Airbnb predicted price.

image