Spaces:
Sleeping
Sleeping
| title: Invoice-Flow AI | |
| emoji: π | |
| colorFrom: blue | |
| colorTo: purple | |
| sdk: streamlit | |
| sdk_version: "1.31.1" | |
| app_file: app.py | |
| pinned: false | |
| # Invoice-Flow AI | |
| **Agentic invoice verification & on-chain trust registry** | |
| Invoice-Flow AI is a hackathon prototype that automates invoice verification using: | |
| - Multimodal AI (Gemini 1.5 Flash) | |
| - Human-in-the-loop buyer consent | |
| - Blockchain-based replay protection | |
| The system prevents invoice fraud and double-financing while reducing verification costs from βΉ500+ to under βΉ5 per invoice. | |
| --- | |
| ## π Demo Flow | |
| 1. Upload an invoice PDF | |
| 2. AI extracts structured data | |
| 3. Buyer approval (simulated UI) | |
| 4. Verified receipt minted on Polygon | |
| 5. Transaction visible on PolygonScan | |
| --- | |
| ## π§ Architecture Overview | |
| - **AI Layer:** Gemini 1.5 Flash (PDF β JSON) | |
| - **Consent Layer:** Buyer approval UI (Webhook-ready) | |
| - **Settlement Layer:** Polygon Amoy (EVM-compatible) | |
| - **Security:** SHA-256 hashing for replay protection | |
| --- | |
| ## π Tech Stack | |
| - Streamlit | |
| - Google Gemini 1.5 Flash | |
| - Web3.py | |
| - Polygon Amoy Testnet | |
| --- | |
| ## π Secrets Required (Hugging Face) | |
| Add the following in **Settings β Variables**: | |
| - `GEMINI_API_KEY` | |
| - `RPC_URL` | |
| - `PRIVATE_KEY` | |
| β οΈ Do NOT commit secrets to the repository. | |
| --- | |
| ## β οΈ Disclaimer | |
| This is a hackathon prototype. | |
| Production deployments would replace UI consent with secure webhooks and cryptographic buyer signatures. | |