File size: 980 Bytes
52674b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""Built-in demo tasks — shown as Gradio examples."""

from pathlib import Path

from config import DATA_DIR

DEMO_DATASETS: dict[str, Path] = {
    "Sales (CSV)": DATA_DIR / "sales.csv",
    "Employees (CSV)": DATA_DIR / "employees.csv",
    "Students (CSV)": DATA_DIR / "students.csv",
}

DEMO_EXAMPLES: list[list[str]] = [
    [
        "Sales (CSV)",
        "Which product had the highest total revenue across all months?",
    ],
    [
        "Sales (CSV)",
        "How many units of Widget A were sold in total?",
    ],
    [
        "Employees (CSV)",
        "What is the average salary in the Engineering department?",
    ],
    [
        "Employees (CSV)",
        "Which city has the highest average salary?",
    ],
    [
        "Students (CSV)",
        "What percentage of students passed math (pass_math=True)?",
    ],
    [
        "Students (CSV)",
        "Who is the student with the highest average score across math, reading, and writing?",
    ],
]