juliensimon/table_questions
10
Table Questions
Ask natural language questions about your CSV data and get answers from two state-of-the-art table question-answering models side by side.
<p align="center"> <img src="https://img.shields.io/badge/TAPEX-Microsoft-blue" alt="TAPEX"> <img src="https://img.shields.io/badge/TAPAS-Google-red" alt="TAPAS"> <img src="https://img.shields.io/badge/SDK-Gradio-orange" alt="Gradio"> </p>
How It Works
- Upload a CSV file (or use the default football statistics dataset)
- Type a natural language question (e.g., "Who scored the most goals?")
- Adjust the row slider to control how many rows the models process
- Get answers from both models simultaneously for comparison
Models
Example Questions
Using the included football statistics dataset:
- "Who scored the most goals?"
- "Which team had the fewest losses?"
- "What was the total number of draws?"
Limitations
- Maximum sequence length of 1,024 tokens per model
- Very large tables may need to be trimmed using the row slider
- Both models work best with structured, clean tabular data
Tech Stack
- Transformers:
AutoModelForSeq2SeqLM,AutoModelForTableQuestionAnswering - Gradio: Interactive web interface
- Pandas: CSV parsing and table handling
Run Locally
git clone https://huggingface.co/spaces/juliensimon/table_questions
cd table_questions
pip install -r requirements.txt
python app.py