shashank1601/intelligent-data-analyst-agent
0
Intelligent Data Analyst Agent
FastAPI service that:
- Ingests a CSV
- Auto-preprocesses features
- Chooses classification vs regression
- Trains a small PyTorch MLP
- Returns metrics + a human-readable report
- Generates an LLM summary via HF Inference API (if
HF_TOKENset), else local Transformers fallback.
Endpoints
GET /– healthPOST /analyze– upload CSVPOST /explain– direct LLM explanation (API path)GET /debug/status– shows ifHF_TOKENis present
Secrets
HF_TOKEN– HF access token (Space → Settings → Variables and secrets)HF_LLM_MODEL– (optional) defaultgoogle/flan-t5-small
