This is the 'Classification of Textual E-Mail Spam Using Naïve Bayes Classifier' integrated in Streamlit Application.
I have used Streamlit framework for integration because it lets us turn data scripts into sharable web apps in minutes. We can instantly develop web apps for Machine Learning and Data Science and deploy them easily using Streamlit.
Installing Streamlit
-
Make sure you have python installed in your system
-
Use the following command to install streamlit,
pip install streamlit
Running a streamlit app
First, you need create a python script with streamlit commands and execute the script using the following command,
streamlit run <yourscript.py>
Below is the simple UI of the E-mail classifier project where user enters the message in the text box and the Machine Learning Model predicts and display the result as 'Spam/Ham' when user clicks the 'Predict' button.
Thank You.. HappY Coding :)