Skip to content
Pranavi01-gitPublic

About

esQNet is an offline-resilient emergency reporting network that uses Google’s Gemini 2.5 Flash to transform unstructured disaster reports into structured JSON priority queues. Featuring a panic-optimized UX and automatic offline rule fallbacks, ResQNet accelerates responder dispatch during critical crisis events.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

🆘 ResQnet: AI-Powered Emergency Response Triage ResQnet is a resilient, real-time emergency triage dashboard engineered for crisis situations. Built for the Google Code for Communities Hackathon, ResQnet transforms unstructured crowd-reported disaster reports into structured JSON queues, automatically assessing priority using Google's Gemini 2.5 Flash model with a zero-downtime offline rule engine fallback.

✨ Key Features AI-Powered Triage: Parses natural language incident reports into categorized priority levels (HIGH, MEDIUM, LOW) with natural language reasoning via gemini-2.5-flash.

Zero-Downtime Offline Engine: Automatically falls back to local rule-based heuristic classification if network connectivity drops or API limits are exceeded.

Panic-Optimized UI: Low-friction Streamlit form supporting quick text descriptions, landmark references, and optional manual/auto GPS tagging.

Interactive Responder Dashboard: Real-time map visualization and full incident lifecycle tracking (UNVERIFIED ➔ VERIFIED ➔ DISPATCHED ➔ RESOLVED).

Structured Data Outputs: Guarantees JSON output compliance using google-genai SDK configuration schemas.

🏗 System Architecture [ Citizens / Victims ] │ ▼ 🚨 Streamlit Form (Description, Category, Landmark) │ ├──► [ API Key Available & Online? ] │ │ │ ├── YES ──► 🤖 Gemini 2.5 Flash API (Structured JSON Triage) │ │ │ └── NO ──► ⚙️ Offline Rule Engine (Heuristic Risk Matrix) │ ▼ 📋 Responder Dashboard & Live Map (State-Persisted Incidents) 🚀 Quickstart Guide Prerequisites Python 3.9+

Google Gemini API Key (Get one via Google AI Studio)

  1. Clone the Repository Bash git clone https://github.com/Pranavi01-git/ResQnet.git cd ResQnet
  2. Set Up Virtual Environment Bash python -m venv venv

On macOS/Linux:

source venv/bin/activate

On Windows:

venv\Scripts\activate 3. Install Dependencies Bash pip install -r requirements.txt 4. Configure Environment Variables Create a .env file in the project root:

Code snippet GEMINI_API_KEY=your_gemini_api_key_here Alternatively, create .streamlit/secrets.toml:

Ini, TOML GEMINI_API_KEY = "your_gemini_api_key_here" 5.Launch the application streamlit run app.py

Tech Stack Frontend / UI: Streamlit

AI Model: Google Gemini 2.5 Flash (google-genai SDK)

Data Processing: Pandas

Environment Management: python-dotenv 5. Launch the Application Bash streamlit run app.py

About

esQNet is an offline-resilient emergency reporting network that uses Google’s Gemini 2.5 Flash to transform unstructured disaster reports into structured JSON priority queues. Featuring a panic-optimized UX and automatic offline rule fallbacks, ResQNet accelerates responder dispatch during critical crisis events.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages