Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 720 Bytes

readme.md

File metadata and controls

49 lines (34 loc) · 720 Bytes

spam-detection-api-py

Table of Contents

Installation

First install all the required package via pip

  • pandas
  • sklearn
  • nltk
  • fastapi
  • pydantic

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

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:

  • Microsofft Copilot
  • Me (TIMOTHY1498)