umarani18/url-malicious-api
0
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
- Create a new Space on Hugging Face.
- Set the SDK to Docker.
- Upload the contents of your
backendfolder. - Go to Settings > Variables and secrets and add:
JWT_SECRET_KEY: (A random secret string)- 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
