Skip to content

RishiRaj0712/healthcare_chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Healthcare Chatbot

A healthcare chatbot that provides medical diagnosis and recommendations based on user input symptoms using a fine-tuned model deployed on Hugging Face.

Check out the deployed Model on Hugging Face.

Note:-

If you are using the deployed app for testing then kindly wait for 40 sec - 50 sec after the first input. It takes around 50sec to restart the server again.

Table of Contents

Overview

This project involves a chatbot that accepts symptoms from the user and returns possible medical conditions and recommendations. It leverages a fine-tuned BERT model deployed on Hugging Face for the predictions.

Features

  • Chat interface for entering symptoms.
  • Real-time medical diagnosis and recommendations.
  • Typing effect for bot responses.

Technologies Used

Frontend

  • React
  • Axios
  • Typing Effect Hook
  • CSS

Backend

  • Node.js
  • Express.js
  • Axios
  • Hugging Face API

Setup and Installation

Prerequisites

  • Node.js and npm installed on your machine.

Installation Steps

  1. Clone the repository:

    git clone https://github.com/RishiRaj0712/healthcare_chatbot.git
    cd healthcare_chatbot 
  2. Install frontend dependencies:

    cd diagnosis-chatbot
    npm install
  3. Install backend dependencies:

    cd ../diagnosis-chatbot-backend
    npm install

Environment Variables

Create a .env file in the diagnosis-chatbot-backend directory and add your Hugging Face API token:

HUGGING_FACE_API_TOKEN=your_hugging_face_api_token

Running the Project

  1. Navigate to the backend directory:

    cd diagnosis-chatbot-backend
  2. Start the backend server:

    node index.js

Running the Frontend

  1. Open a new terminal and navigate to the frontend directory:

    cd diagnosis-chatbot
  2. Start the frontend development server:

    npm run dev
  3. Open your browser and navigate to http://localhost:5173 to interact with the chatbot.

License

This project is licensed under the MIT License.