How sourabh-2610/truthlens works
TruthLens is a web application for analyzing news and presenting results. The visible client code supports image selection, camera capture, authentication forms, recent analyses, and result display; model training is implemented separately using labeled news datasets. The Flask application is a substantial but unsampled part of the repository, so its internal routes and connections to the client or model cannot be verified here. The graph therefore shows only relationships evidenced by the available excerpts.
Main entry points: app.js Browser interface · train.py Training pipeline · Fake.csv Fake news dataset · True.csv Real news dataset
Components 12
Web experience
- Browser interface
static/JS/app.js - Analysis results
static/JS/app.js - Recent analyses
static/JS/app.js - Image and camera input
static/JS/app.js - Authentication forms
static/JS/app.js
Detection model
- Classifier artifact
model.pkl - TF-IDF artifact
vectorizer.pkl
Model training
- Training pipeline
train.py - Fake news dataset
Fake.csv - Real news dataset
True.csv
Other components
- User
- Flask application
app.py
Connections 9
- User → Browser interface: uses
static/JS/app.js - Browser interface → Image and camera input: selects or captures
static/JS/app.js - Browser interface → Authentication forms: opens forms
static/JS/app.js - Browser interface → Recent analyses: renders recents
static/JS/app.js - Browser interface → Analysis results: renders results
static/JS/app.js - Fake news dataset → Training pipeline: loads
train.py - Real news dataset → Training pipeline: loads
train.py - Training pipeline → Classifier artifact: writes
train.py - Training pipeline → TF-IDF artifact: writes
train.py