Downloads ยท 30 days
0
govindamahanti/JOBFRAUDDETECTOR
JOBFRAUDDETECTOR is a machine learning model from govindamahanti. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A machine learning-powered API for detecting potentially fraudulent job postings using natural language processing and company verification.
Downloads ยท 30 days
0
Access
Public
Updated Dec 9, 2025
Repo size
17.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors17.5 MB ยท 91%
From the Hugging Face model README
A machine learning-powered API for detecting potentially fraudulent job postings using natural language processing and company verification.
Clone the repository
git clone https://github.com/yourusername/job-fraud-detection.git
cd job-fraud-detection
Create and activate a virtual environment
# Windows
python -m venv venv
.\venv\Scripts\activate
# macOS/Linux
python3 -m venv venv
source venv/bin/activate
Install dependencies
pip install -r requirements.txt
Create a .env file in the root directory:
FLASK_APP=app.py
FLASK_ENV=development
SECRET_KEY=your-secret-key-here
MODEL_PATH=models/
HF_TOKEN=your-huggingface-token
Place your trained model files in the models/ directory
flask run
gunicorn --bind 0.0.0.0:5000 app:app
# Build the Docker image
docker build -t job-fraud-detection .
# Run the container
docker run -p 5000:5000 job-fraud-detection
GET /Health check endpoint.
Response:
{
"status": "success",
"message": "Job Fraud Detection API is running",
"endpoints": {
"GET /": "Health check (this endpoint)",
"POST /predict": "Predict job fraud probability"
}
}
POST /predictPredict the probability of a job posting being fraudulent.
Request Body:
{
"job_title": "Senior Software Engineer",
"job_description": "Job description here...",
"company_name": "Tech Corp",
"company_domain": "techcorp.com",
"salary_raw": "$120,000 - $150,000",
"location": "Remote",
"email_subject": "Regarding your application",
"email_body": "Email content here..."
}
Response:
{
"status": "success",
"prediction": {
"company_auth_score": 85.5,
"job_fraud_probability": 0.12,
"email_risk_score": 0.15,
"final_verdict": "Legitimate",
"confidence": 0.88
}
}
# Login to Heroku
heroku login
# Create a new Heroku app
heroku create your-app-name
# Deploy to Heroku
git push heroku main
pip install awsebclieb init -p python-3.9 job-fraud-detectioneb create job-fraud-detection-enveb deployRun the test suite:
pytest
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)This project is licensed under the MIT License - see the LICENSE file for details.
Your Name - your.email@example.com
Project Link: https://github.com/yourusername/job-fraud-detection