/Medical-Chat-bot

Medical Chat-bot for Cardiovascular Diseases and Maternal Diseases Risk Assessment for males and females respectively based on LangChain Open Source Framework and Machine Learning Models.

Primary LanguageJupyter Notebook

Medical Chat-bot

Demo

2023-06-17.17-38-44.mp4

About ":white_check_mark:NurseGPT"

2023-06-17 (30) An interactive medical chat-bot based on Streamlit and Langchain Python's Frameworks, the chat-bot responds in the same language as the user, it is supposed to assess the risk of cardiovascular diseases for male users and maternal diseases for female users, as low or high risk, the chat-bot asks the user for the symptoms or medical information and the data is then extracted from the input text (prompt) using Langchain's built in module "Object", after the data or required information is extracted from the input text the information is fed into a pre-made machine learning model depending on the gender of the user, maternal model for females and cardiovascular model for males, where the value of risk is computed from the model and upon its value the bot would respond with high or low risk to the user.

Snapshots

  • English Chatbot 2023-06-17 (29)

  • Arabic Chatbot 2023-06-17 (27)

Frameworks Used

  • Python's Streamlit Framework (UI)
  • Python's Langchain Framework (Chat-bot)

Note

Don't forget to change the path of models present in the 'streamlit_app.py' file to match your own path

Run The App

  • Download Python 3
  • Download VS code

1- Clone The project

git clone https://github.com/ahmed-elsarta/lablab-Hackathon-project.git

2- Install packages

pip install -r requirements.txt

3- Run the app

streamlit run streamlit_app.py