I took this example from below website to understand how to work with data science in a web user interface.  https://towardsdatascience.com/how-to-build-a-data-science-web-app-in-python-penguin-classifier-2f101ac389f3