Skip to content

TIMOTHY1498/spam-detection-api-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

spam-detection-api-py

Table of Contents

Installation

First install all the required package via pip

  • pandas
  • sklearn
  • nltk
  • uvicorn
  • pydantic
  • fastapi

Second, download the source code via this github page

Lastly, run the file main.py to start hosting the API by this command

uvicorn main:app --reload

Usage

⚠️ Disclaimer: You need to change the dataset for training. You can change the hosted training data link via:

url = '' # List message that used for the AI Training, please use your own!

By the way, the hosted API link is 23.88.73.88:35922 (url having issue)

To use the API, Create a post request as same as this example:

{
    "message" : "Message to check Here!"
}

And the API will respond:

{
    "isSpam" : true // or false
}

Credits

Credits to:

  • Microsoft Copilot
  • Me (TIMOTHY1498)

About

Detect any kind of spam message

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages