Git Product home page Git Product logo

dikshant09 / baymax Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.28 MB

BayMax is a machine learning web app that predicts the disease based on user symptoms.

Home Page: https://disease-prediction-app-vercel.vercel.app/

HTML 0.87% CSS 5.50% JavaScript 33.87% SCSS 11.35% Jupyter Notebook 45.97% Python 2.44%
react firebase firestore html jupyter machine-learning matplotlib numpy pandas sass firebase-database jupyter-notebook python

baymax's Introduction

BayMax

  • It’s a web app that can predict the disease based on user symptoms.
  • The data we’re using is taken from the Kaggle.
  • Python & its libraries such as Pandas, Numpy, Matplotlib & Sklearn is used for model creation.
  • React is used as Frontend and Sass is used for Styling.
  • Google Firebase & Firestore is used as Backend.
  • Google OAuth is used for authentication purposes

Live Link: BayMax

Requirements

  • Node v10+
  • Configured firebase.config.js file
  • Google Account

ML Model API

Model is deployed on Hugging spaces using Gradio.

POST Request

Input Payload

{
  "data": [
     string, // represents symptoms
   ]
}

Response Object

{
  "data": [
    string, // represents predictions
  ],
  "duration": (float) // number of seconds to run function call
}

How to run

  1. Create firebase.config.js file in client/src/

    Create a Firebase App using google account and then you will get below drive code & some API keys.
    Ensure the API keys are configured in .env in this directory. It should include the following keys:

import { getFirestore } from 'firebase/firestore';
import { initializeApp } from "firebase/app";

const firebaseConfig = {
  apiKey: "XXXXXXXXXXXXXXX",
  authDomain: "XXXXXXXXXXXXXXX",
  projectId: "XXXXXXXXXXXXXXX",
  storageBucket: "XXXXXXXXXXXXXXX",
  messagingSenderId: "XXXXXXXXXXXXXXX",
  appId: "XXXXXXXXXXXXXXX",
  measurementId: "XXXXXXXXXXXXXXX"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
export const db = getFirestore();
  1. Create .env file in client/

    If you want to use another disease prediction API, replace the below key with that one.

REACT_APP_BACKEND_API  =  'https://dikshant09-disease-prediction-api.hf.space/run/predict'
  1. Install dependencies and start the localhost server.
npm install
npm run start

baymax's People

Contributors

dikshant09 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.