Skip to content

Ashmita1206/FundGuard-Project

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

FundGuard – Government Tender Risk Analyzer

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 – Government Tender Risk Analyzer

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.

πŸ” Key Features

HEAD

FEATURES

  • 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

Tech Stack

  • Frontend: HTML5, Bootstrap 5, Chart.js
  • Backend: Python Flask
  • Data Processing: Pandas
  • Deployment Ready: Easily deployable on platforms like Heroku or Render

Installation & Usage

🧰 Setup Instructions

  1. Clone the repository:

git clone https://github.com/Gargibajpai/FundGuard.git

cd FundGuard

  1. (Optional) Create and activate a virtual environment:

Windows

python -m venv venv

venv\Scripts\activate

macOS/Linux

python3 -m venv venv

source venv/bin/activate

  1. Install dependencies:

pip install -r requirements.txt

  1. Run the app:

python app.py

  1. Visit: http://127.0.0.1:5000

  2. πŸ” Login Details Use these credentials to log in:

Username: admin

Password: admin123

πŸ“Έ Demo Screenshot

Here’s a preview of the FundGuard dashboard in action: image image image image image

image

  • πŸ“ 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

πŸ› οΈ Tech Stack

Layer Technology
Frontend HTML, CSS, Bootstrap 5
Backend Python, Flask
Visualization Chart.js
AI/NLP Logic Pandas, OpenAI API
Chatbot Vanilla JS + Flask API

πŸ“¦ Project Structure


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


πŸš€ How to Run Locally

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/


πŸ“Š Sample CSV Format

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

🧠 FundBot (Chat Assistant)

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.


πŸ” Default Login Credentials

Username: admin
Password: admin123

(You can change these in app.py)


πŸ“€ Export Results

After uploading and auditing, go to the dashboard β†’ Click ⬇ Download CSV to export all flagged tender rows.


✨ Future Scope

  • πŸ” 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

πŸ‘₯ Team Members


πŸ“„ License

This project is licensed under the MIT License. aea5609 (Updated FundGuard project with new features and fixes)

About

FundGuard: Uncover suspicious government tenders using data analysis and a clean Flask-powered dashboard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 72.2%
  • Python 18.7%
  • CSS 9.1%