Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.5.1
metadata
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
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
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?"