Spaces:
Sleeping
Sleeping
Commit
·
f89b0ca
1
Parent(s):
98b0652
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from sklearn.feature_extraction.text import TfidfVectorizer
|
|
| 4 |
|
| 5 |
feature_extraction=TfidfVectorizer(min_df=1,stop_words='english',lowercase=True)
|
| 6 |
def Mail_Prediction(Email):
|
| 7 |
-
|
| 8 |
result=mp.predict(input_Email_conv)
|
| 9 |
if(result[0]==1):
|
| 10 |
final_result="HAM"
|
|
|
|
| 4 |
|
| 5 |
feature_extraction=TfidfVectorizer(min_df=1,stop_words='english',lowercase=True)
|
| 6 |
def Mail_Prediction(Email):
|
| 7 |
+
input_Email_conv=feature_extraction.transform([Email])
|
| 8 |
result=mp.predict(input_Email_conv)
|
| 9 |
if(result[0]==1):
|
| 10 |
final_result="HAM"
|