-
Notifications
You must be signed in to change notification settings - Fork 0
7. How to Use
To train the model, run the trainer.py script:
python trainer.pyThis script orchestrates the entire training process, including data loading, preprocessing, model building, training, evaluation, and model saving.
To make predictions using the trained model, run the wrapper.py script:
python wrapper.pyTo run the FastAPI app go to services directory, then execute the following command:
uvicorn app:app --reloadThe app will be accessible at http://127.0.0.1:8000. You can make predictions by sending POST requests to http://127.0.0.1:8000/predict with the required payload.


To run the Streamlit app go to services directory, then execute the following command:
streamlit run app.pyThe app will be accessible at http://localhost:8501 in your web browser. Enter a customer name, click the "Predict" button, and the predicted next item will be displayed.