Spaces:
Running on Zero
Running on Zero
A newer version of the Gradio SDK is available: 6.19.0
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
- Create Space (Gradio, GPU T4 minimum)
- Upload this folder or
git push - Add secret
HF_TOKENif the adapter repo is private - Set hardware to
gpu-t4in README frontmatter - 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 for the full narrative, hackathon eval tables, and why we ship SFT v1 on the live demo.