How anish-000/disaster-response-ai-agent works
Disaster Advisor is a location-aware disaster assessment dashboard. A user submits a place or coordinates; the Streamlit app resolves the location, gathers hazard and nearby-resource data, computes six hazard severities and an overall risk, then presents maps, routes, hazard details, an action plan, and a JSON report. The app orchestrates these stages; pure risk logic and geographic helpers form the internal decision layer. README documents dashboard and export capabilities not fully visible in the sampled excerpts, so their wiring is shown only where supported.
Main entry points: app.py Streamlit app · api_clients.py API clients · ai_summary.py Gemini summary · risk_engine.py Risk engine
Components 17
Assessment workflow
- Streamlit app
app.py - Location assessment
app.py
External data
- API clients
api_clients.py - USGS earthquakes
- Open-Meteo weather
- Geoapify services
- Overpass coastline
- Gemini summary
ai_summary.py - Gemini API
Decision and geography
- Risk engine
risk_engine.py - Threshold config
config.py - Geo helpers
geo_utils.py
User outputs
- Risk dashboard
app.py - Interactive maps
app.py - Route links
geo_utils.py - JSON report
app.py
Other components
- Location seeker
Connections 18
- Location seeker → Streamlit app: submits location
- Streamlit app → API clients: requests location data
- API clients → Geoapify services: geocodes and finds resources
- API clients → USGS earthquakes: fetches earthquakes
- API clients → Open-Meteo weather: fetches weather
- API clients → Overpass coastline: checks coastline
- API clients → Geo helpers: calculates distances and routes
- Streamlit app → Risk engine: scores hazards and plans
- Risk engine → Threshold config: reads thresholds
- Streamlit app → Geo helpers: builds route links
- Streamlit app → Location assessment: assembles results
- Streamlit app → Gemini summary: optionally summarizes plan
- Gemini summary → Gemini API: sends action plan
- Location assessment → Risk dashboard: renders findings
- Risk dashboard → Interactive maps: displays location map
- Risk dashboard → Route links: shows route links
- Risk dashboard → JSON report: offers JSON export
- Risk dashboard → Location seeker: presents guidance