CoolFace
Apppublic

ADMEICD/ICD-SBI-Dashboard

sourceHugging Faceupdated 4mo agoView on Hugging Face
1likes
App README

ICD SBI — Operations Intelligence System

Western Railway · Sabarmati Integrated Coaching Depot

Modern React + FastAPI operations dashboard for coach sick/fit tracking, attendant PV management, RailMadad analytics, and AI-powered insights.

Stack

  • —Frontend: React 18 · Vite · Tailwind CSS · Framer Motion · Recharts
  • —Backend: FastAPI · SQLite · Python 3.11
  • —Deploy: Docker · Hugging Face Spaces (port 7860)

Environment Secrets (set in HF Space Settings)

SecretPurpose
HF_TOKENHugging Face token for DB sync
DATASET_REPOHF dataset repo ID for persistent storage
ANTHROPIC_API_KEYClaude AI analysis (optional)
OPENROUTER_API_KEYBrain panel LLM (free key at openrouter.ai — Llama 3.3 70B)
DATA_DIRPersistent storage root (set to /data on HF)

Persistent Storage

Mount a persistent volume at /data and set DATA_DIR=/data in HF Space environment variables. The SQLite DB (vb36.db) and uploaded attachments (uploads/{intervention_id}/) are stored under DATA_DIR. Locally, DATA_DIR defaults to ./data.