Skip to content

PranabeshBasu/UNOMEDS

Repository files navigation

UNOMEDS — AI Medical Chatbot

UNOMEDS is a Flask-based AI medical support chatbot powered by Google Gemini. It provides step-by-step medical advice, information about diseases, symptoms, medicines, treatments, and wellness tips. The chatbot is designed to be simple and easy to use for all age groups, including elderly users.


Features

  • AI-driven medical and health advice using Google Gemini API.
  • Handles queries about:
    • Diseases & symptoms
    • Medicines & treatments
    • Diet & wellness
    • First aid & precautions
  • Simple step-by-step answers with clear bullet points.
  • Polite handling of non-medical queries: "I can only answer medical and health-related questions."
  • Caution notice included in every response: "This is general advice. Please consult a doctor for personal medical concerns."
  • Minimal and user-friendly web interface (chatbot.html).

Project Structure


UNOMEDS/
│
├─ app.py                # Flask backend code
├─ .env                  # Environment variables (GEMINI\_API\_KEY)
├─ requirements.txt      # Python dependencies
├─ templates/
│   └─ chatbot.html      # Frontend chatbot page
└─ static/               # Optional CSS/JS files for styling


Setup Instructions

  1. Clone the repository
git clone <repo_url>
cd UNOMEDS
  1. Create a virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate   # Linux/Mac
venv\Scripts\activate      # Windows
  1. Install dependencies
pip install -r requirements.txt
  1. Set up environment variables

Create a .env file in the root directory:

GEMINI_API_KEY=your_google_gemini_api_key_here
  1. Run the Flask app
python app.py
  1. Access the chatbot Open your browser and go to:
http://localhost:8000/chatbot

Usage

  • Type your medical or health-related query in the input box.
  • Click Send to receive a response from unoBOT.
  • Only medical queries are supported. Non-medical queries will get a polite warning.

Notes

  • This project is for educational and informational purposes only.
  • Always consult a licensed doctor for personal medical concerns.

Dependencies

  • Flask
  • Flask-CORS
  • python-dotenv
  • google-generativeai

License

MIT License © 2025


Releases

Packages

Contributors

Languages