UrbanFlux is a Next.js CityTwin map frontend with a FastAPI backend.
Warning
The hosted backend at https://api.urbanflux.london/ was turned off after the hackathon, so API-backed features may be unavailable unless you run the backend locally.
- Frontend: https://urbanflux.london/
- API: https://api.urbanflux.london/
- Cloudflare Pages fallback: https://urbanflux.pages.dev/
The borough assignment model is hosted on Hugging Face:
- Model: https://huggingface.co/EugeneEvstafev/urbanflux-borough-nemotron3-nano-lora
- Fine-tuning dataset: https://pub-f20eb55e72ee41a5b80036ea8f6107bb.r2.dev/urbanflux_borough_assignment_training.jsonl
The model was fine-tuned to identify which London borough a CSV row is about. It uses the unstructured text description of the source together with the CSV headers and row values to infer the borough name.
frontend/ Next.js CityTwin map app
backend/ FastAPI API
.github/ GitHub Actions deployment
Frontend:
cd frontend
npm install
npm run devBackend:
cd backend
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload --host 0.0.0.0 --port 8000Pushes to main run .github/workflows/deploy.yml.
- Frontend deploys to Cloudflare Pages project
urbanflux. - Backend CI and VPS deployment are disabled because the hosted backend was turned off after the hackathon.
Detailed notes:
frontend/README.mdbackend/README.md

