File size: 404 Bytes
54a8838
6e44b92
54a8838
 
6e44b92
54a8838
 
 
 
 
 
 
6e44b92
 
54a8838
6e44b92
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import streamlit as st
import joblib

# Load the model
model = joblib.load('sms_spam_model.joblib')

# Streamlit app
st.title("SMS Spam Classifier")
message = st.text_area("Enter your message:")

if st.button("Classify"):
  prediction = model.predict([message])
  if prediction[0] == 1:
    st.error("This message is classified as SPAM.")
  else:
    st.success("This message is classified as NOT SPAM.")