DEV Community

Cover image for Multiple Disease Prediction App
Abhinav Mathur
Abhinav Mathur

Posted on

Multiple Disease Prediction App

In this guide, we'll show you how to install and run a multiple disease prediction web app that detects Parkinson's Disease, Heart Disease, and Diabetes. The app is hosted here and you can also run it locally by cloning the GitHub repository.

Prerequisites

  • Python: Ensure that Python (version 3.7 or above) is installed on your system. You can download it here.
  • pip: This is typically installed with Python. To check if you have pip installed, run pip --version in your terminal.
  • Streamlit: Streamlit is the framework used to build this web app.

Install it using the following command:

pip install streamlit
Enter fullscreen mode Exit fullscreen mode

Steps to Install and Run

Clone the Repository

First, clone the GitHub repository for the app:

git clone https://github.com/Maniac1769/public_ml_web_app
Enter fullscreen mode Exit fullscreen mode

Navigate into the project directory:

cd public_ml_web_app
Enter fullscreen mode Exit fullscreen mode

Install the Required Dependencies
The project uses a few Python packages which are listed in the requirements.txt file. To install all the required dependencies, run:

pip install -r requirements.txt
Enter fullscreen mode Exit fullscreen mode

Run the App
Once the dependencies are installed, you can run the app using Streamlit:

streamlit run mdps_public.py
Enter fullscreen mode Exit fullscreen mode

This will launch the app in your browser at http://localhost:8501/.

Using the App

  • Prediction Options: You will see three different disease prediction sections for Parkinson's Disease, Heart Disease, and Diabetes.
  • Input Fields: Enter the required medical parameters in the input fields, such as age, glucose levels, etc., depending on the disease you want to check for.
  • Results: After entering the values, click on the Predict button to get the prediction result.

Conclusion

That's it! With these simple steps, you can run the Multiple Disease Detection app locally. Happy coding!

Top comments (0)