Skip to content

About

Project for HackDay IITBh

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Transaction Tracker

Upload a bank statement as a PDF (downloaded or scanned), a PNG/JPG photo or screenshot, or a CSV, and get your total spending, a category breakdown, your biggest spends and a short written summary.

Model: gemma-4-26b-a4b-it (Gemma 4 through the Gemini API, using the google-genai package)

Screenshot

How it works

  1. You pick a PDF, PNG, JPG or CSV file and click Analyze spending.
  2. The server reads the text from a PDF or CSV. A scanned PDF is turned into one image, and PNG/JPG photos are shrunk and sent as an image.
  3. One Gemma call (ask or ask_with_image from gemma_client.py) returns the transactions as JSON.
  4. Plain Python adds up the totals and categories. No database, no login.

How to run

  1. Install Python 3.10 or newer.
  2. Install the packages:
    pip install -r requirements.txt
    
  3. Copy .env.example to .env and put your key in it:
    GEMINI_API_KEY=your-key-here
    
    .env is in .gitignore, so it is never committed.
  4. Start the app:
    python app.py
    
  5. Open http://localhost:5000, choose a file with Import statement and click Analyze spending.

Files

  • gemma_client.py – the Gemma helper (unchanged)
  • app.py – the Flask server
  • static/index.html – the single page
  • LICENSE – license for this project

About

Project for HackDay IITBh

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages