Spaces:
Sleeping
Sleeping
File size: 648 Bytes
fb86e58 fd7f144 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
---
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?"
|