Skip to content

EURedBoy/ProfanityApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProfanityApi

GitHub all releases GitHub GitHub deployments GitHub repo size GitHub Repo stars


Note

Environment variable:

AZURE_PATH= your azure path
API_KEY= your api key

Overview

This project was created for fun inspired by this project. It offers a web interface and a backend REST API for interacting with an embedding database to identify profanity within a sentence.

How it works?

The system utilizes the API provided by Azure OpenAI to generate embeddings for common swear words, which are then uploaded to the ChromaDB database.

Upon receiving input, the system breaks down the text into semantic sentences. These sentences are then processed through Azure OpenAI to generate embeddings. The system compares these embeddings with the values stored in the ChromaDB database. If the distance between the two 'points' is below a certain threshold, it identifies the sentence as containing profanity.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published