A visually appealing web app to detect corruption in government tenders. A data-driven platform that detects corruption patterns in government tender allocations using CSV data and visual analytics.
FundGuard is an AI-assisted web application that analyzes government tender data for red flags such as over-budget spending, vendor repetition, and suspicious clauses. It ensures transparency and helps identify potential fraud in public procurement.
HEAD
- Upload and analyze CSV files containing tender data
- Automatic risk flagging for:
- Over-budget tenders (Final Cost > 1.5 Γ Estimated Cost)
- Repeated vendor allocations (same vendor winning > 3 tenders)
- Interactive dashboard with:
- Total tenders count
- Flagged tenders count
- Risk distribution pie chart
- Downloadable report of flagged tenders
- Responsive data table with all tender details
- Frontend: HTML5, Bootstrap 5, Chart.js
- Backend: Python Flask
- Data Processing: Pandas
- Deployment Ready: Easily deployable on platforms like Heroku or Render
π§° Setup Instructions
- Clone the repository:
git clone https://github.com/Gargibajpai/FundGuard.git
cd FundGuard
- (Optional) Create and activate a virtual environment:
python -m venv venv
venv\Scripts\activate
python3 -m venv venv
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Run the app:
python app.py
-
Visit:
http://127.0.0.1:5000 -
π Login Details Use these credentials to log in:
Username: admin
Password: admin123
Hereβs a preview of the FundGuard dashboard in action:

- π CSV Upload: Upload tender files for instant audit
- π§ Risk Scoring Engine: AI-based fraud risk score (0β100)
- π NLP Clause Analyzer: Detect unfair or suspicious clauses
- π¬ FundBot Chatbot: Ask questions on tenders or fraud flags
- π Interactive Dashboard: View flagged entries and stats
- π Dark Mode: Persistent theme switcher
- β¬οΈ Export: Download flagged data as CSV
- π Secure Login: Session-based access control
| Layer | Technology |
|---|---|
| Frontend | HTML, CSS, Bootstrap 5 |
| Backend | Python, Flask |
| Visualization | Chart.js |
| AI/NLP Logic | Pandas, OpenAI API |
| Chatbot | Vanilla JS + Flask API |
FundGuard/
β
βββ static/
β βββ style.css # Theme & layout styling
β βββ logo.png # Navbar/login logo
β βββ illustration.png # Landing hero image
β
βββ templates/
β βββ home.html # Landing page
β βββ login.html # Login + chatbot
β βββ dashboard.html # Analysis dashboard
β
βββ uploads/ # Uploaded/flagged CSVs
β
βββ app.py # Flask backend
βββ requirements.txt # Python dependencies
βββ README.md # Project overview
git clone https://github.com/<your-username>/FundGuard.git
cd FundGuard
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate on Windows
pip install -r requirements.txt
python app.pyπ Open in browser: http://127.0.0.1:5000/
Tender ID,Department,Estimated Cost,Final Cost,Vendor
T1234,Health,1000000,1800000,ABC Corp
T5678,Transport,800000,750000,XYZ Ltd
T9101,Education,600000,1200000,ABC Corp
β AI will auto-flag:
- β Over Budget (β₯ 1.5Γ estimate)
- π Vendor Repeat (more than 3 entries)
- π Duplicate Invoices
- π¬ Suspicious Descriptions
- π Weekend Approvals
A chatbot is embedded on the login page. Ask:
- βHow does FundGuard detect fraud?β
- βWhat does risk score 75 mean?β
- βWhat flags are shown for tender repeats?β
Works offline with logic-based fallback if OpenAI is unavailable.
Username: admin
Password: admin123(You can change these in app.py)
After uploading and auditing, go to the dashboard β Click β¬ Download CSV to export all flagged tender rows.
- π Multi-user login with role-based access
- π NLP-based full tender clause auditing
- π§ Fine-tuned ML model for fraud patterns
- βοΈ Cloud CSV storage with analytics
-
Gargi Bajpai GitHub β
-
Ashmita Goyal GitHub β
-
Lipika Tomar GitHub β
This project is licensed under the MIT License. aea5609 (Updated FundGuard project with new features and fixes)