Spaces:
Sleeping
Sleeping
A newer version of the Streamlit SDK is available:
1.54.0
metadata
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
- Upload an invoice PDF
- AI extracts structured data
- Buyer approval (simulated UI)
- Verified receipt minted on Polygon
- 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_KEYRPC_URLPRIVATE_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.