A React web app that interfaces with the PolyGuard ML model to scan code for security vulnerabilities and suggest improvements.
npm install && npm run dev → http://localhost:5173
POST https://muhammadsaadamin-polyguard-api.hf.space/analyze Body: { "code": "string", "language": "python" }
- Home — landing, links, API schema preview
- Analyzer — live code scanner with score ring + findings
- Architecture — interactive 5-tool system diagram + retrain guide
- Roadmap — 4-phase plan to make the model smarter
- Add data → 01_data_collection.ipynb
- Retrain → 03_train_model.ipynb (T4 GPU, 20-40 min)
- Push model → api.upload_folder(..., repo_id="MUHAMMADSAADAMIN/polyguard-model")
- Restart HF Space → Settings → Restart Space
- Test → curl POST /analyze