This is a Flask web app that lets you upload an expense CSV and ask questions about your data using a locally running Llama 3.2 model via Ollama.
- Upload CSV files of your expenses
- Ask natural language questions about your data
- Answers powered by Llama 3.2 (via Ollama)
git clone <your-repo-url>
cd expense-analytics-apppython3 -m venv .venv
source .venv/bin/activatepip install -r requirements.txtCreate a .env file in the project root:
SECRET_KEY=<your-random-secret-key>
Generate a random secret key:
python3 -c "import secrets; print(secrets.token_urlsafe(32))"python app.pyThe app will be available at http://localhost:5000
Follow instructions at: https://ollama.com/download
ollama pull llama3.2ollama serveOllama will run at http://localhost:11434 by default.
- Upload your CSV file on the web interface.
- Ask questions about your expenses in natural language.
- The AI will analyze your data and provide answers.
- Uploaded CSV files are stored in the
uploads/directory (and are gitignored). - The app only sends a sample of your data to the LLM for context.
- For best results, use clear and specific questions.
MIT