How lakshagrawal28/biascraft works
BiasCraft lets users tune education, experience, and location weights, run a hiring simulation, and inspect accuracy, fairness, selection rates, bias alerts, charts, and sampled candidates. The React app owns the request and result presentation; FastAPI scores the dataset, selects candidates, computes metrics, and returns a sample. Dataset generation and the principal frontend/API path are supported by excerpts and README; the candidate JSON is a runtime data store. Other documented UI details are represented at the frontend node, since the excerpt does not expose their internal implementation.
Main entry points: App.tsx Model and results UI · main.py Scoring and selection · candidates.json Candidate dataset · main.tsx React entry
Components 9
Simulation interface
- React entry
frontend/src/main.tsx - Model and results UI
frontend/src/App.tsx
Simulation API
- FastAPI endpoint
backend/main.py - Scoring and selection
backend/main.py - Metrics and alerts
backend/main.py - Candidate sample
backend/main.py
Candidate data
- Candidate dataset
backend/data/candidates.json - Dataset generator
backend/generate_data.py
Other components
- User
Connections 10
- User → Model and results UI: sets weights
README.md - React entry → Model and results UI: renders
frontend/src/main.tsx - Model and results UI → FastAPI endpoint: POST weights
frontend/src/App.tsx - Model and results UI → FastAPI endpoint: checks status
frontend/src/App.tsx - FastAPI endpoint → Scoring and selection: runs model
backend/main.py - Scoring and selection → Candidate dataset: loads candidates
backend/main.py - Scoring and selection → Metrics and alerts: computes metrics
backend/main.py - Scoring and selection → Candidate sample: samples candidates
backend/main.py - Dataset generator → Candidate dataset: writes dataset
backend/generate_data.py - FastAPI endpoint → Model and results UI: returns results
README.md