Logo Lanfrica

praccer/InsuSafe-Chatbot

Domaine:

natural language processing

Type de record:

software
Créateur:
pra
Hôte:
InsuSafe Chatbot — Flask + Gemini web assistant for GlaciBag: insulin temperature safety (2–8°C), real-time monitoring guidance, and Safety Node emergency support (EN/FR/AR/Darija). # InsuSafe Chat-Bot # 🏥 InsuSafe AI Assistant This repository contains the **InsuSafe Chatbot**, a specialized AI companion built to support diabetic patients. While it is part of the larger InsuSafe ecosystem, this specific tool focuses on providing instant, reliable information regarding insulin safety and device management. --- ### 🌟 Specialized Experience * **Sleek Minimalist UI:** A high-end, distraction-free interface designed for clarity and speed. * **Session-Based Memory:** Remembers the context of your conversation within a single session—no database required. * **Dialect Awareness:** Specifically optimized to understand **Moroccan Darija** alongside English, French, and MSA. ### 🛡️ Knowledge Domain * **Insulin Protocol:** Expert guidance on the strict **2°C – 8°C storage rule**. * **Hardware Digital Twin:** Simulated support for the **GlaciBag** (Peltier cooling status and battery health). * **Safety Node Access:** Instant instructions on how to trigger the decentralized emergency network. ### 🚫 Strict Guardrails To ensure the bot remains a professional medical-grade tool, it is strictly limited to the InsuSafe domain. It will ignore: * General coding or technical requests. * Politics, entertainment, or unrelated "small talk." ### 🛠️ Technical Architecture * **Backend:** Flask (Python) using encrypted client-side sessions. * **Intelligence:** Google Gemini API (Grounded with InsuSafe System Instructions). * **Frontend:** Clean HTML5/CSS3 with **HTMX** for seamless, no-refresh messaging. ### Run ```python -m pip install flask google-genai``` ## PowerShell: ```$env:FLASK_SECRET_KEY="some-long-random-string" # required for sessions``` ```$env:GEMINI_API_KEY="YOUR_KEY" # Use your own gemini API``` ```python app.py # to run the website``` ### Open : 127.0.0.1 127.0.0.1