Skip to content

About

AI-powered disaster response assistant built with Gemma 4

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

DisasterMind 🚨

Offline-first AI assistant for emergency responders — powered by Gemma 4

DisasterMind runs entirely on your local device using Ollama. No internet connection required after setup. Designed for field use in disaster zones, remote locations, and environments where privacy and reliability are non-negotiable.


Features

  • General assistant — Ask anything about emergency protocols, medical procedures, or disaster response
  • START Triage — Input casualty numbers, get a prioritised action plan in seconds
  • Resource allocation — Advice on deploying limited personnel and equipment effectively
  • SITREP generator — Turn raw field notes into command-ready SALUTE situation reports
  • Comms drafting — Generate evacuation notices, inter-agency messages, and press releases

Setup

1. Install Ollama

Download and install from https://ollama.com

2. Pull Gemma 4

# Full capability (requires ~8GB RAM)
ollama pull gemma4:12b

# Lightweight edge version (requires ~3GB RAM)
ollama pull gemma4:2b

3. Clone & install dependencies

git clone <your-repo-url>
cd disastermind
pip install -r requirements.txt

4. Run

python app.py

Open your browser at http://localhost:8000


Model Selection

Edit app.py to change the model:

MODEL = "gemma4:12b"   # Default — best quality
MODEL = "gemma4:2b"    # Edge devices, low RAM (e.g. Raspberry Pi, tablets)

Architecture

User Browser
    │
    ▼
FastAPI (app.py)           ← Routing, prompt engineering, streaming
    │
    ▼
Ollama (local daemon)      ← Model runtime (runs Gemma 4 locally)
    │
    ▼
Gemma 4 weights            ← Fully local inference, no data leaves device

Why Ollama + Gemma 4?

  • Offline-first: Once pulled, runs with zero internet
  • Privacy: Patient/victim data never leaves the device
  • Gemma 4 multimodal: Future support for image-based scene assessment
  • Edge-capable: gemma4:2b runs on consumer hardware, tablets, and Raspberry Pi

Hackathon Track

Gemma 4 Good Hackathon — Global Resilience track

Built for the Kaggle Gemma 4 Good Hackathon 2026.


License

MIT

About

AI-powered disaster response assistant built with Gemma 4

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages