How shri-ram8/scanbuzz works
TruthScan is a web fake-news detector. A user selects news or social content, submits text in the browser, and receives a verdict with confidence, per-model predictions, and clickbait signals. Flask validates the request, attempts a remote BERT prediction, and also runs local models; the local ensemble supplies the verdict if BERT is unavailable. The browser renders the response. The README documents health checking, though its /api/health path differs from the /health route in app.py. Unsampled HTML and model artifacts limit detail about their internals.
Main entry points: app.py Flask API · main.js Scanner interface · index.html Page shell · vec_word.pkl Classical model files
Components 10
Browser interface
- Scanner interface
main.js - Page shell
index.html - Prediction display
main.js
API service
- Flask API
app.py - Health endpoint
app.py
Inference
- Feature builder
app.py - Local classifiers
app.py - Hugging Face BERT
Model assets
- Classical model files
vec_word.pkl
Other components
- User
Connections 10
- User → Scanner interface: submits text
main.js - Scanner interface → Flask API: POSTs prediction
main.js - Flask API → Page shell: serves page
app.py - Flask API → Feature builder: builds features
app.py - Feature builder → Classical model files: transforms with
app.py - Flask API → Local classifiers: runs classifiers
app.py - Local classifiers → Feature builder: predicts from
app.py - Flask API → Hugging Face BERT: requests prediction
app.py - Flask API → Prediction display: returns JSON
app.py - Prediction display → Scanner interface: renders verdict
main.js