Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ st.title("📩 SMS Spam Detection App")
|
|
10 |
st.markdown("🔍 Enter a message below to check if it's **Spam** or **Not Spam (Ham)**")
|
11 |
|
12 |
# --- Load Model and Vectorizer ---
|
13 |
-
model = joblib.load("
|
14 |
vectorizer = joblib.load("model/tfidf_vectorizer.pkl") # Adjust as per your folder
|
15 |
|
16 |
# --- Text Cleaning Function ---
|
|
|
10 |
st.markdown("🔍 Enter a message below to check if it's **Spam** or **Not Spam (Ham)**")
|
11 |
|
12 |
# --- Load Model and Vectorizer ---
|
13 |
+
model = joblib.load("https://huggingface.co/spaces/MLDeveloper/Spam_SMS_Detection/resolve/main/spam.csv") # Make sure path is correct
|
14 |
vectorizer = joblib.load("model/tfidf_vectorizer.pkl") # Adjust as per your folder
|
15 |
|
16 |
# --- Text Cleaning Function ---
|