Spaces:
Running on Zero
Running on Zero
| # DataSense HF Demo β layout | |
| ``` | |
| hf_demo/ | |
| βββ app.py # Gradio UI + examples | |
| βββ agent.py # generate β execute loop (sandbox) | |
| βββ model_loader.py # base + Peft adapter | |
| βββ config.py # model IDs & env overrides | |
| βββ prompts.py # SYSTEM_PROMPT | |
| βββ examples.py # 6 built-in demo tasks | |
| βββ requirements.txt # Space dependencies | |
| βββ README.md # HF Space card (YAML frontmatter) | |
| βββ story.html # Full project narrative + eval tables | |
| βββ eval_hackathon_benchmarks.json | |
| βββ data/ | |
| β βββ sales.csv | |
| β βββ employees.csv | |
| β βββ students.csv | |
| βββ assets/illustrations/ # story.html figures (9 PNGs) | |
| ``` | |
| ## Deploy checklist | |
| 1. Create Space (Gradio, **GPU T4** minimum) | |
| 2. Upload this folder or `git push` | |
| 3. Add secret `HF_TOKEN` if the adapter repo is private | |
| 4. Set hardware to `gpu-t4` in README frontmatter | |
| 5. Smoke-test all 6 examples after build | |
| ## Model swap path | |
| | Checkpoint | `DATASENSE_ADAPTER_MODEL` | | |
| |------------|---------------------------| | |
| | **SFT v1 (demo default)** | `sanjaymalladi/DataSense-Modal-E2B-SFT` | | |
| | EVTE-STaR Micro-1 | `sanjaymalladi/DataSense-Modal-E2B-EVTE-Star-Micro1` | | |
| | EVTE-STaR (final) | `sanjaymalladi/DataSense-Modal-E2B-EVTE-Star` | | |
| | SFT v2 | `sanjaymalladi/DataSense-Modal-E2B-SFT-v2` | | |
| ## Project story | |
| Open [`story.html`](story.html) for the full narrative, hackathon eval tables, and why we ship **SFT v1** on the live demo. | |