Spaces:
Sleeping
Sleeping
File size: 2,569 Bytes
800a6d1 558d330 800a6d1 558d330 800a6d1 558d330 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | ---
title: Financial Statement Analyzer
emoji: ๐
colorFrom: blue
colorTo: green
sdk: docker
pinned: false
app_port: 7860
short_description: AI financial analysis portal with free BYOK models.
---
# ๐ Financial Statement Analyzer
Cloud-hosted AI analysis portal. Fetches financial statements for any listed company (Indian NSE/BSE or global NYSE/NASDAQ), computes ratios, generates AI narratives, and produces downloadable Excel, Word, and PowerPoint reports.
**Bring Your Own Key (BYOK)** โ keys stay in your browser session only, never stored.
## ๐ Free AI Options (No Credit Card Needed)
| Provider | Model | Where to get key |
|---|---|---|
| **Groq** *(recommended)* | Llama 3.3 70B | [console.groq.com](https://console.groq.com/keys) โ instant signup |
| **Google Gemini** | Gemini 2.0 Flash | [aistudio.google.com](https://aistudio.google.com/app/apikey) โ free tier |
## ๐ณ Optional Paid AIs
| Provider | Model | Where to get key |
|---|---|---|
| Anthropic Claude | Claude Haiku | [console.anthropic.com](https://console.anthropic.com/) |
| OpenAI | GPT-4o mini | [platform.openai.com](https://platform.openai.com/api-keys) |
## How to Use
1. Open the app โ paste a **free Groq or Gemini key** in the sidebar
2. Enter a company name/ticker (e.g. TCS, Reliance, AAPL)
3. Pick formats (Excel / Word / PowerPoint) and click **Analyze**
4. Download your reports instantly
## Features
- ๐ **Smart Ticker Resolution** โ resolves company names via yfinance + FMP
- ๐ **Financial Data** โ Income statement, balance sheet, cash flow, 5โ10 year history
- ๐งฎ **Ratio Engine** โ 30+ ratios + DuPont decomposition
- ๐ค **Multi-Model AI** โ Use multiple providers simultaneously; outputs combined with attribution
- ๐ฅ **Export Reports** โ Excel workbook, Word summary, PowerPoint pitch deck
- ๐ **Audit Trail** โ Every run logged with user, ticker, formats, and AI models used
## Optional: Persistent Audit Logs (Supabase)
Without Supabase, logs reset on redeploy. To persist them:
| Secret | Value |
|---|---|
| `SUPABASE_URL` | Your Supabase project URL |
| `SUPABASE_KEY` | Supabase anon public key |
## Tech Stack
- **Frontend**: Streamlit with custom dark glassmorphism CSS
- **Data**: yfinance (primary), FMP API (secondary), screener.in (Indian fallback)
- **AI**: Groq/Llama (free), Gemini (free tier), Claude, ChatGPT
- **Reports**: openpyxl (Excel), python-docx (Word), python-pptx (PowerPoint)
- **Audit**: SQLite (local) or Supabase (cloud persistent)
- **Container**: Docker on Python 3.11-slim
|