In my case, it’s the master branch of the repo named ‘rahulbanerjee26/KNN-Streamlit’ Screenshot 1 of Īuthorize Streamlit and give it access to your Github Repos. Go to the following website and sign in using your GitHub account. I will be deploying the following repo Sign in to Streamlit Sharing Make sure your virtual environment is activated before you type the above command Upload the files to GitHubĬreate a PUBLIC repository on GitHub and upload the .py files and the requirements.txt file. Below is the command to create the file pip freeze > requirements.txt Create a text file with the necessary librariesĬreate a requirements.txt file with the dependencies. Within a few days, you should get an email granting you access.
Go to their website and sign up Screenshot of the page where you sign up
It usually takes a few days to get access, I got access within 72 hours. Streamlit Sharing is currently in its beta mode and you need to join the waiting list to get access to it. Below I will walk over the steps in the deployment process. Streamlit sharing is a service provided by Streamlit to easily deploy your app. What’s the point of building a UI if you can not show it to others.
How to build a KNN classification model from scratch and visualize it using StreamlitĪlthough libraries like sklearn have made our lives easier, it is always a good practice to make a model from scratch…