apshabd.io

The Profanity Detection API is a web service designed to detect and flag profane language in text messages. Built using the Hono framework and deployed on a serverless environment such as Cloudflare Workers, this API leverages vector search technologies to accurately identify offensive language.

Stars
4

url = 'https://abshabd.apshabd.workers.dev/gaali' headers = { 'Content-Type': 'application/json', } data = { 'message': 'tu ##### hai' }

response = requests.post(url, headers=headers, json=data) print(response.json()) Environment VariablesMake sure to set the following environment variables for the API to function correctly:VECTOR_URL: URL of the vector database.VECTOR_TOKEN: Token for authenticating requests to the vector database.Setup and DeploymentClone the repository.Install dependencies using npm install.Deploy to your serverless environment (e.g., Cloudflare Workers).Set the required environment variables (VECTOR_URL and VECTOR_TOKEN).Access the API at the /gaali endpoint.

Related Projects