--- title: CSV Chatbot emoji: 📊 colorFrom: blue colorTo: green sdk: gradio sdk_version: "6.3.0" app_file: app.py pinned: false --- # CSV Chatbot A simple chatbot that queries CSV data using natural language. Uses Gemini API to convert questions to pandas code. ## Setup ```bash uv venv .venv source .venv/bin/activate uv pip install -r requirements.txt ``` Add your Gemini API key to `.env`: ``` GEMINI_API_KEY=your_key_here ``` ## Run ```bash python app.py ``` ## Example Questions - "What is the total sales by region?" - "Show top 5 salespersons by revenue" - "Plot monthly sales trend" - "Which product category has highest sales?"