Murriel's picture
Upload folder using huggingface_hub
adbd29d verified
|
Raw
History Blame Contribute Delete
4.76 kB

A newer version of the Gradio SDK is available: 6.22.0

Upgrade
metadata
title: Water_Potability_Prediction_App-main
app_file: predict.py
sdk: gradio
sdk_version: 3.50.0

Water Potability Prediction App using Gradio

Application is hosted at https://sgvkamalakar-water-potability-prediciton-app.hf.space/

Aqua Predict

Main Motto off this project:

The main motto of the Water Potability Prediction App is to provide a simple and easy-to-use tool for predicting the potability of water based on various water quality parameters. The app is intended to help users quickly determine whether the water they are using or considering using is safe to drink or not. This information can be critical for ensuring the health and safety of individuals and communities. The app uses a machine learning model to analyze the given parameters and predict the potability of the water. By providing a user-friendly interface and reliable predictions, the Water Potability Prediction App aims to improve access to safe and clean drinking water for all.

Introduction:

The main objective of this project is to provide a simple and easy-to-use web application that can predict the potability of water by analyzing the given parameters. The web application is built using Gradio, a Python library that helps to quickly create customizable UI components for machine learning models. The application allows the user to input the various water parameters and get an immediate prediction of the water potability.

This repository contains the code for both the machine learning model and the Gradio web application.

The dataset used for building the model is available in the repository as a CSV file. The dataset contains a total of 3276 observations of water quality parameters and the target variable 'Potability'. The data is preprocessed, cleaned, and transformed before being used to train the machine learning model.

Overall, this project is an excellent demonstration of how machine learning and web development can be combined to create a useful application for predicting water potability. The code and documentation in this repository can be used as a starting point for similar projects in the future.

This documentation note is intended to provide a step-by-step guide for using the application, as well as an overview of the model and its implementation.

System Requirements:

  • Python 3.7 or higher
  • Required Python Libraries: pandas, numpy, sklearn, gradio

Getting Started:

Using the App:

  • Once the app is launched in the web browser, input the various water parameters in the provided fields.

image

  • Click on the "Submit" button to get the water potability prediction.

  • The prediction will be displayed in the "Result" field. image

  • To test the results of the Water Potability Prediction App using Gradio using your own inputs, simply input your own values for the water parameters in the provided fields and click on the "Submit" button.

image

  • It is important to note that the accuracy of the prediction may vary depending on the quality of your inputs. Therefore, it is recommended to use accurate and reliable data when testing the results of the app.

Understanding the Model:

The model is built using Python and Scikit-learn libraries. It uses a Random Forest Classifier algorithm to predict the potability of water based on the given parameters. The dataset used for building the model is available in the repository as a CSV file. The data is preprocessed, cleaned, and transformed before being used to train the machine learning model.

Conclusion:

The Water Potability Prediction App using Gradio is an excellent example of how machine learning and web development can be combined to create a useful application. This documentation note provides a step-by-step guide for using the application and an overview of the model and its implementation. The code and documentation in this repository can be used as a starting point for similar projects in the future.