Spaces:
Runtime error
Runtime error
A newer version of the Gradio SDK is available: 6.26.0
metadata
title: Multi Agent Finance Assistant
emoji: π
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 5.31.0
app_file: app.py
pinned: false
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
π Multi-Agent Finance Assistant
A sophisticated AI-powered financial analysis system that delivers spoken market briefs through an intuitive Gradio interface. Built with multiple specialized agents and powered by Google's Gemini 2.0 Flash.
ποΈ Architecture Overview
Agent Ecosystem
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β API Agent β β Scraping Agent β β Retriever Agent β
β Real-time Data β β News & Filings β β Vector Search β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β β β
βββββββββββββββββββββββββΌββββββββββββββββββββββββ
β
βββββββββββββββββββ
β Orchestrator β
β (FastAPI) β
βββββββββββββββββββ
β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Analysis Agent β β Language Agent β β Voice Agent β
β Risk Metrics β β Gemini 2.0 Flashβ β STT/TTS Pipelineβ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
π― Key Features
- π€ Multi-Agent Architecture: Six specialized agents working in harmony
- π€ Voice Interface: Speech-to-text and text-to-speech capabilities
- π Real-time Data: Live market data via Yahoo Finance API
- π Smart Retrieval: Vector search with FAISS embeddings
- π§ Advanced AI: Powered by Google Gemini 2.0 Flash
- π± Modern UI: Attractive Gradio interface with dark mode support
- βοΈ Cloud Ready: Deployable on Hugging Face Spaces
π Quick Start
Local Development
- Clone the repository
git clone <your-repo-url>
cd multi-agent-finance-assistant
- Install dependencies
pip install -r requirements.txt
- Set environment variables
export GEMINI_API_KEY="your-gemini-api-key"
export ALPHA_VANTAGE_KEY="your-alphavantage-key" # Optional
- Run the application
python app.py
Hugging Face Spaces Deployment
- Create a new Space on Hugging Face
- Upload all files to your Space repository
- Add secrets in Space settings:
GEMINI_API_KEY: Your Google AI Studio API key
- Set Space to Gradio framework
- Deploy and share!
π Use Case Example
Morning Market Brief Query:
"What's our risk exposure in Asia tech stocks today, and highlight any earnings surprises?"
AI Response:
"Today, your Asia tech allocation is 22% of AUM, up from 18% yesterday. TSMC beat estimates by 4%, Samsung missed by 2%. Regional sentiment is neutral with a cautionary tilt due to rising yields