MLDeveloper commited on
Commit
7d00f2b
·
verified ·
1 Parent(s): 4f6ca42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -12,7 +12,7 @@ st.title("📩 SMS Spam Detection App")
12
  st.markdown("🔍 Enter a message below to check if it's **Spam** or **Not Spam (Ham)**")
13
 
14
  # --- Load dataset ---
15
- csv_url = "https://huggingface.co/spaces/MLDeveloper/Spam_SMS_Detection/resolve/main/spam.csv"
16
  try:
17
  df = pd.read_csv(csv_url, encoding='latin-1')[['v1', 'v2']]
18
  df.columns = ['label', 'message']
@@ -68,4 +68,5 @@ with st.expander("📄 View sample dataset (CSV)"):
68
  st.dataframe(df[['label', 'message']].head())
69
 
70
  st.markdown("---")
71
- st.markdown("🔒 **Note**: Model is trained in real-time from CSV and not saved for reuse. Ideal for demo purposes.**")
 
 
12
  st.markdown("🔍 Enter a message below to check if it's **Spam** or **Not Spam (Ham)**")
13
 
14
  # --- Load dataset ---
15
+ csv_url = "https://huggingface.co/spaces/MLDeveloper/Spam_SMS_Detection/resolve/main/spam.csv"
16
  try:
17
  df = pd.read_csv(csv_url, encoding='latin-1')[['v1', 'v2']]
18
  df.columns = ['label', 'message']
 
68
  st.dataframe(df[['label', 'message']].head())
69
 
70
  st.markdown("---")
71
+ st.markdown("🔒 **Note**: Model is trained in real-time from CSV and not saved for reuse. Ideal for demo purposes.**")
72
+