Pravincoder commited on
Commit
984bac6
β€’
1 Parent(s): 88f5df6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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 Token
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
- 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 fine-tuned using a comprehensive dataset.
 
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
  )