A newer version of the Gradio SDK is available:
5.44.1
metadata
title: ChatCSV
emoji: π
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 5.25.2
app_file: app.py
pinned: false
license: mit
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
CSV Chatbot
An interactive chatbot that analyzes CSV files using natural language queries. Upload your CSV data and ask questions in plain English to get insights, visualizations, and reports.
Features
- Natural Language Queries: Ask questions about your CSV data in plain English
- Multiple File Support: Upload and analyze multiple CSV files at once
- Automatic Visualization: Generate charts and graphs based on your data
- Report Generation: Export conversation and analysis results as HTML reports
- Smart CSV Handling: Automatic detection of encoding, delimiters, and data types
How to Use
- Upload CSV Files: Click the upload button and select one or more CSV files
- Process Files: Click "Process Files" to index your data
- Ask Questions: Type your question in the text box and click "Submit"
- View Results: See text responses, tables, and visualizations in the chat
- Export Results: Click "Export Conversation" to create a shareable report
Example Queries
- "What's the average value in column X?"
- "Show me a histogram of the distribution in column Y"
- "Is there a correlation between column A and column B?"
- "What are the top 5 values in column Z?"
- "Compare the average values grouped by category"
Technical Details
This application uses:
- Phi-3-mini language model for natural language understanding
- LlamaIndex for data indexing and retrieval
- Pandas for data analysis
- Matplotlib for visualization
- Gradio for the web interface
Limitations
- Large CSV files (>100MB) may take longer to process
- Complex statistical analyses may require specific phrasing
- Currently limited to tabular data in CSV format
Feedback and Contributions
This is an open-source project. Feedback and contributions are welcome!