Skip to content

SGCODEX/Gemini_Event_Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‘๏ธ Drishti Access โ€“ Event Situations Simulation Chatbot

Drishti Access is a multilingual, AI-powered chatbot designed to simulate and respond to crowd management scenarios during large public events. Using Google's Gemini API and Text-to-Speech, it lets you define venue structure, crowd size, gate timings, and ask realistic "what-if" questions like:

โ€œWhat happens if Gate A is closed at 12 PM while Gate B remains open?โ€

โ€œImagine 2000 people came more. How should we make them disperse properly at 2PM to avoid stampede?โ€

It also reads out responses in the selected Indian language!


๐Ÿš€ Features

  • ๐Ÿง  Gemini-Powered Simulation
    Responds intelligently to what-if crowd management scenarios.

  • ๐Ÿ—บ๏ธ Event Setup Panel
    Define venue name, structure, gate timings, timelines, and crowd size.

  • ๐Ÿ—ฃ๏ธ Multilingual Support
    Supports 10 Indian languages for both response and TTS playback:

    • Hindi, Bengali, Marathi, Tamil, Telugu, Gujarati, Kannada, Malayalam, Punjabi, English
  • ๐Ÿ”Š In-Browser TTS
    Uses gTTS to play voice feedback for every response.

  • ๐Ÿงพ Custom Gemini API Key Option
    Use your own API key securely via the sidebar.


๐Ÿ’ก Topics Covered

  • Streamlit UI Development
  • Google Gemini (Generative AI) Integration
  • Event Simulation Logic
  • Text-to-Speech (gTTS)
  • Multilingual Natural Language Processing
  • In-Memory Audio Generation (io.BytesIO)

๐Ÿ› ๏ธ Installation

  1. Clone the repository:
    git clone https://github.com/your-username/drishti-access-chatbot.git
    cd drishti-access-chatbot
    
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Set up secrets: Create a .streamlit/secrets.toml file and add your Gemini API key:
    GEMINI_API_KEY = "your-api-key-here"
    
  4. Run the app:
    streamlit run chat.py
    

๐Ÿ“บ Demo

image image

Made by Shivam Gupta for Google Agentic AI Day Hackathon

About

It is a multilingual, AI-powered chatbot designed to simulate and respond to crowd management scenarios using Gemini API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages