Pravincoder
commited on
Commit
β’
984bac6
1
Parent(s):
88f5df6
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import tensorflow as tf
|
3 |
import numpy as np
|
4 |
from tensorflow.keras.preprocessing.sequence import pad_sequences
|
5 |
-
from tensorflow.keras.preprocessing.text import
|
6 |
import pickle
|
7 |
|
8 |
# Load the trained model
|
@@ -34,7 +34,8 @@ ui = gr.Interface(
|
|
34 |
|
35 |
title='π« Spam Message Detection π΅οΈββοΈ',
|
36 |
description="""
|
37 |
-
|
|
|
38 |
|
39 |
**π Key Features:**
|
40 |
- State-of-the-art machine learning model
|
@@ -47,7 +48,7 @@ ui = gr.Interface(
|
|
47 |
2. Click the "Detect" button to initiate the spam detection process.
|
48 |
3. Receive instant feedback on whether the input message is classified as spam or not.
|
49 |
|
50 |
-
**π Note
|
51 |
|
52 |
This app is a demonstration and educational tool. It showcases the effectiveness of machine learning in identifying spam messages. Enjoy exploring the world of spam detection with our highly accurate model! π"""
|
53 |
)
|
|
|
2 |
import tensorflow as tf
|
3 |
import numpy as np
|
4 |
from tensorflow.keras.preprocessing.sequence import pad_sequences
|
5 |
+
from tensorflow.keras.preprocessing.text import Tokenizer
|
6 |
import pickle
|
7 |
|
8 |
# Load the trained model
|
|
|
34 |
|
35 |
title='π« Spam Message Detection π΅οΈββοΈ',
|
36 |
description="""
|
37 |
+
|
38 |
+
Welcome to the Spam Message Detection appβa powerful demo designed for learning purposes. π This application employs advanced machine learning techniques to identify and flag spam messages with remarkable accuracy. π€ With a training set accuracy of 99.89% and a validation/test set accuracy of 98.39%, the model has been Trained using a comprehensive dataset.
|
39 |
|
40 |
**π Key Features:**
|
41 |
- State-of-the-art machine learning model
|
|
|
48 |
2. Click the "Detect" button to initiate the spam detection process.
|
49 |
3. Receive instant feedback on whether the input message is classified as spam or not.
|
50 |
|
51 |
+
**π Note:**
|
52 |
|
53 |
This app is a demonstration and educational tool. It showcases the effectiveness of machine learning in identifying spam messages. Enjoy exploring the world of spam detection with our highly accurate model! π"""
|
54 |
)
|