CoolFace
Apppublic

umarani18/url-malicious-api

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
App README

Malicious URL Detection Backend

This is a Flask REST API for detecting malicious URLs using a BERT + Gradient Boosting ensemble.

Deployment on Hugging Face Spaces

  1. 1.Create a new Space on Hugging Face.
  2. 2.Set the SDK to Docker.
  3. 3.Upload the contents of your backend folder.
  4. 4.Go to Settings > Variables and secrets and add:
  5. 5.JWT_SECRET_KEY: (A random secret string)
  6. 6.The Space will build and provide a public URL for your API.

API Usage

  • Health Check: GET /
  • Predict Single: POST /predict (JSON: {"url": "..."})
  • Auth: POST /api/auth/login