BreathGuard is a react web application that uses a machine learning model to predict lung cancer risk. The graphical interface is provided through an application written in React, using several libraries such as react-bootstrap, and react-icons.
You can access the live demo of BreathGuard on Netlify.
The application communicates with my model using API, which I provided at this link: https://lung-cancer-prediction-d3d07d9e4aad.herokuapp.com
Link to the dataset used to train the model: https://www.kaggle.com/datasets/thedevastator/cancer-patients-and-air-pollution-a-new-link
Link to the college project repository: https://github.com/arix2000/MachineLearningProject
To run this project locally, you need to have Python installed on your system. Follow these steps to install the required dependencies:
1. Install and run my ML Model
To install the necessary dependencies for the frontend, navigate to the "client" directory and run the following command:
cd client
npm install
Navigate to the client directory and start the React frontend:
cd client
npm start
![Zrzut ekranu 2023-09-1 o 21 21 03](https://private-user-images.githubusercontent.com/110868938/265110702-4789a92d-3a3f-4991-8f1c-e4ba5f492b27.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwNDY1MTUsIm5iZiI6MTcyNTA0NjIxNSwicGF0aCI6Ii8xMTA4Njg5MzgvMjY1MTEwNzAyLTQ3ODlhOTJkLTNhM2YtNDk5MS04ZjFjLWU0YmE1ZjQ5MmIyNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgzMFQxOTMwMTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hNzQzOWQzM2Y4OGNlZjQ4NGZmYzhiMDY4ZTkzMzU5MjNkMDNjOTY2Nzg1ZGM1YmI2ZjI2YTIzZTRiZjJlZTc5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ja0AgYMqzvXha9SzplnjaGSm-4zRlPGQf_wrSApdxXo)
![Zrzut ekranu 2023-09-1 o 21 21 19](https://private-user-images.githubusercontent.com/110868938/265110741-acea0c26-ff64-46b5-8a3b-85e2b4bcfda0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwNDY1MTUsIm5iZiI6MTcyNTA0NjIxNSwicGF0aCI6Ii8xMTA4Njg5MzgvMjY1MTEwNzQxLWFjZWEwYzI2LWZmNjQtNDZiNS04YTNiLTg1ZTJiNGJjZmRhMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgzMFQxOTMwMTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ODQ2NmYxMWQ1Y2MwMWIwNzcwOTM3ZWY2ZTU4ODRlMWM2MTBmYWNhNmRlODQxMDRhZDk3ZmY5Mjc4MDU0MGM1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ZODCRFuHku6M0f7fhLCLWoObjx1ensICOJu_Yjkr47k)
![Zrzut ekranu 2023-09-1 o 21 21 32](https://private-user-images.githubusercontent.com/110868938/265110744-353b3a42-388d-47a9-94e5-9f63d9eed1df.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiY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