Skip to content

Commit

Permalink
Merge pull request #93 from GDSC-IIIT-Kalyani/main
Browse files Browse the repository at this point in the history
Few changes from GDSC
  • Loading branch information
Isha307 authored Dec 5, 2021
2 parents 7046431 + cfc2a8a commit bf880d6
Show file tree
Hide file tree
Showing 15 changed files with 128 additions and 74 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cmake.configureOnOpen": false
}
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,30 @@
Prediction or detection of various medical ailments. Deployed locally using Flask 2.0.

## Setup

If you do not have Anaconda or Miniconda3 installed install it using the following link

Anaconda : https://www.anaconda.com/products/individual

MiniConda3 : https://docs.conda.io/en/latest/miniconda.html

Assuming you have Ananconda or Miniconda3 already working, create a tensorflow conda environment and install a few libraries into it, and then we're ready to go.
If you have Anaconda installed create a conda environment :

* Install the current release of CPU-only TensorFlow, recommended for beginners:

```bash
conda create -n tf tensorflow
conda create -n tf
conda activate tf
conda install -c conda-forge tensorflow
```


* Or, to install the current release of GPU TensorFlow on Linux or Windows:

```bash
conda create -n tf-gpu tensorflow-gpu
conda create -n tf-gpu
conda activate tf-gpu
conda install tensorflow-gpu
```

* Cd into your newly created environment (from command line or terminal)
Expand Down
Binary file added app/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions templates/breastCancer.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<!-- ===============================================-->
<!-- Main Content-->
<!-- ===============================================-->
<main class="main" id="top">
<main class="main" id="top" style="overflow: hidden;">
<nav class="navbar navbar-expand-lg navbar-light fixed-top py-3" data-navbar-on-scroll="data-navbar-on-scroll">

<div class="container"><a class="navbar-brand d-flex align-items-center fw-bold fs-2" href="#">
Expand All @@ -60,7 +60,7 @@
</div>


<div class="row" style="margin-bottom: 20%;">
<div class="row" style="margin-top: 100px; margin-bottom: 100px;">
<div class="col-md-2"></div>
<div class="col-md-8">
<center><h1>Breast Cancer Predictor</h1></center>
Expand Down
8 changes: 4 additions & 4 deletions templates/covid.htm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<!-- ===============================================-->
<!-- Main Content-->
<!-- ===============================================-->
<main class="main" id="top">
<main class="main" id="top" style="overflow: hidden;">
<nav class="navbar navbar-expand-lg navbar-light fixed-top py-3" data-navbar-on-scroll="data-navbar-on-scroll">

<div class="container"><a class="navbar-brand d-flex align-items-center fw-bold fs-2" href="#">
Expand All @@ -60,10 +60,10 @@
</div>


<div class="row" style="margin-bottom: 20%;">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<center><h1>Covid Predictor</h1></center>
<center style="margin-top: 100px;"><h1 style="margin: 30px;">Covid Predictor</h1></center>
<div class="card card-body" style="border: 1px solid black;">
<form class="form-horizontal" action="{{ url_for('predictCovid') }}" method="POST">
<div class="row">
Expand Down Expand Up @@ -153,7 +153,7 @@
</div>


<footer>
<footer style="position: fixed; bottom: 0; width: 100%;">
<center>
<ul style="list-style-type:none;">
<li style="display: inline;"><a href="https://github.com/IIITKalyaniFOSC" target="blank"><span class="fa fa-github"> GitHub</span></a></li>
Expand Down
6 changes: 3 additions & 3 deletions templates/dengue.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<!-- ===============================================-->
<!-- Main Content-->
<!-- ===============================================-->
<main class="main" id="top">
<main class="main" id="top" style="overflow: hidden;">
<nav class="navbar navbar-expand-lg navbar-light fixed-top py-3" data-navbar-on-scroll="data-navbar-on-scroll">

<div class="container"><a class="navbar-brand d-flex align-items-center fw-bold fs-2" href="#">
Expand All @@ -59,7 +59,7 @@
<div class="bg-holder" style="background-image:url(../static/img/illustrations/dot.png);background-position:left;background-size:auto;margin-top:-105px;">
</div>

<div class="row" style="margin-bottom: 20%;">
<div class="row" style="margin-top: 100px;">
<div class="col-md-2"></div>
<div class="col-md-8">
<center><h1>Dengue Predictor</h1></center>
Expand Down Expand Up @@ -149,7 +149,7 @@
</div>


<footer>
<footer style="position: fixed; bottom: 0; width: 100%;">
<center>
<ul style="list-style-type:none;">
<li style="display: inline;"><a href="https://github.com/IIITKalyaniFOSC" target="blank"><span class="fa fa-github"> GitHub</span></a></li>
Expand Down
58 changes: 29 additions & 29 deletions templates/departments.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
<button class="navbar-toggler collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse border-top border-lg-0 mt-4 mt-lg-0" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto pt-2 pt-lg-0">
<li class="nav-item"><a class="nav-link fw-bold active" aria-current="page" href="{{ url_for('home') }}">Home</a></li>
<li class="nav-item"><a class="nav-link" href="{{ url_for('departments') }}">Departments</a></li>
<li class="nav-item"><a class="nav-link" aria-current="page" href="{{ url_for('home') }}">Home</a></li>
<li class="nav-item"><a class="nav-link fw-bold active" href="{{ url_for('departments') }}">Departments</a></li>

<li class="nav-item"><a class="nav-link" href="{{ url_for('loginPage') }}">Login/Sign-Up</a></li>
</ul>
Expand Down Expand Up @@ -77,90 +77,90 @@ <h2 id="services" class="fw-bold">Our Departments</h2>
<li>
<div class="pack-box pack-img-1">
<div class="pack-info">
<a href="{{ url_for('heartDisease') }}">
<h3>Heart system</h3>

<button>Visit</button>
<form action="{{ url_for('heartDisease') }}">
<button>Visit</button>
</form>
</div>
</div>
</li>
<li>
<div class="pack-box pack-img-2">
<div class="pack-info">
<a href="{{ url_for('covid') }}">
<h3>Covid-19</h3>

<button>Visit</button>
<form action="{{ url_for('covid') }}">
<button>Visit</button>
</form>
</div>
</div>
</li>
<li>
<div class="pack-box pack-img-3">
<div class="pack-info">
<a href="{{ url_for('diabetes') }}">
<h3>Diabetes</h3>

<button>Visit</button>
<form action="{{ url_for('diabetes') }}">
<button>Visit</button>
</form>
</div>
</div>
</li>
<li>
<div class="pack-box pack-img-4">
<div class="pack-info">
<a href="{{ url_for('kidney') }}">
<h3>Kidney</h3>

<button>Visit</button>
<form action="{{ url_for('kidney') }}">
<button>Visit</button>
</form>
</div>
</div>
</li>
<li>
<div class="pack-box pack-img-5">
<div class="pack-info">
<a href="{{ url_for('breastCancer') }}">
<h3>Breast Cancer</h3>

<button>Visit</button>
<form action="{{ url_for('breastCancer') }}">
<button>Visit</button>
</form>
</div>
</div>
</li>
<li>
<div class="pack-box pack-img-6">
<div class="pack-info">
<a href="{{ url_for('malaria') }}">
<h3>Malaria</h3>

<button>Visit</button>
<form action="{{ url_for('malaria') }}">
<button>Visit</button>
</form>
</div>
</div>
</li>
<li>
<div class="pack-box pack-img-7">
<div class="pack-info">
<a href="{{ url_for('ThyroidDisease') }}">
<h3>Thyroid Disease</h3>

<button>Visit</button>
<form action="{{ url_for('ThyroidDisease') }}">
<button>Visit</button>
</form>
</div>
</div>
</li>
<li>
<div class="pack-box pack-img-8">
<div class="pack-info">
<a href="{{ url_for('dengue') }}">
<h3>Dengue</h3>
<p>Dengue fever</p>
<button>Visit</button>
<form action="{{ url_for('dengue') }}">
<button>Visit</button>
</form>
</div>
</div>
</li>
<li>
<div class="pack-box pack-img-9">
<div class="pack-info">
<a href="{{ url_for('ParkinsonDisease') }}">
<h3>Parkinson</h3>

<button>Visit</button>
<form action="{{ url_for('ParkinsonDisease') }}">
<button>Visit</button>
</form>
</div>
</div>
</li>
Expand Down
10 changes: 5 additions & 5 deletions templates/diabetes.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<!-- ===============================================-->
<!-- Main Content-->
<!-- ===============================================-->
<main class="main" id="top">
<main class="main" id="top" style="overflow: hidden;">
<nav class="navbar navbar-expand-lg navbar-light fixed-top py-3" data-navbar-on-scroll="data-navbar-on-scroll">

<div class="container"><a class="navbar-brand d-flex align-items-center fw-bold fs-2" href="#">
Expand All @@ -60,10 +60,10 @@
</div>


<div class="row" style="margin-bottom: 20%;">
<div class="row" style="margin-top: 100px;">
<div class="col-md-2"></div>
<div class="col-md-8">
<center><h1>Diabetes Predictor</h1></center>
<center><h1 style="margin: 30px;">Diabetes Predictor</h1></center>
<div class="card card-body" style="border: 1px solid black;">
<form class="form-horizontal" action="{{ url_for('predictDiabetes') }}" method="POST">
<div class="row">
Expand Down Expand Up @@ -111,15 +111,15 @@
<input style="border: 1px solid black;" class="form-control" type="text" name="Age" placeholder="Age">
</div>
</div>
</div>
<input type="submit" class="btn btn-info btn-block" value="Predict">
</form>
</div>
</div>
<div class="col-md-2"></div>
</div>

<footer>
<footer style="position: fixed; bottom: 0; width: 100%;">
<center>
<ul style="list-style-type:none;">
<li style="display: inline;"><a href="https://github.com/IIITKalyaniFOSC" target="blank"><span class="fa fa-github"> GitHub</span></a></li>
Expand Down
8 changes: 4 additions & 4 deletions templates/heartDisease.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<!-- ===============================================-->
<!-- Main Content-->
<!-- ===============================================-->
<main class="main" id="top">
<main class="main" id="top" style="overflow: hidden;">
<nav class="navbar navbar-expand-lg navbar-light fixed-top py-3" data-navbar-on-scroll="data-navbar-on-scroll">

<div class="container"><a class="navbar-brand d-flex align-items-center fw-bold fs-2" href="#">
Expand All @@ -59,11 +59,11 @@
<div class="bg-holder" style="background-image:url(../static/img/illustrations/dot.png);background-position:left;background-size:auto;margin-top:-105px;">
</div>

<div class="row" style="margin-bottom: 20%;">
<div class="row" style="margin-top: 100px;">
<div class="col-md-2"></div>
<div class="col-md-8">
<center>
<h1>Heart disease Predictor</h1>
<h1 style="margin: 30px;">Heart disease Predictor</h1>
</center>
<div class="card card-body" style="border: 1px solid black;">
<form class="form-horizontal" action="{{ url_for('predict') }}" method="POST">
Expand Down Expand Up @@ -148,7 +148,7 @@ <h1>Heart disease Predictor</h1>
<div class="col-md-2"></div>
</div>

<footer>
<footer style="position: fixed; bottom: 0; width: 100%;">
<center>
<ul style="list-style-type:none;">
<li style="display: inline;"><a href="https://github.com/IIITKalyaniFOSC" target="blank"><span class="fa fa-github"> GitHub</span></a></li>
Expand Down
9 changes: 4 additions & 5 deletions templates/kidney.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<!-- ===============================================-->
<!-- Main Content-->
<!-- ===============================================-->
<main class="main" id="top">
<main class="main" id="top" style="overflow: hidden;">
<nav class="navbar navbar-expand-lg navbar-light fixed-top py-3" data-navbar-on-scroll="data-navbar-on-scroll">

<div class="container"><a class="navbar-brand d-flex align-items-center fw-bold fs-2" href="#">
Expand All @@ -58,11 +58,10 @@
<section class="py-0">
<div class="bg-holder" style="background-image:url(../static/img/illustrations/dot.png);background-position:left;background-size:auto;margin-top:-105px;">
</div>
<div class="row" style="margin-bottom: 20%;">
<div class="row" style="margin-top: 80px;">
<div class="col-md-2"></div>
<div class="col-md-8">
<center><h1>Kidney Disease Predictor</h1></center>
<br><br><br>
<center><h1 style="margin: 30px;">Kidney Disease Predictor</h1></center>
<div class="card card-body" style="border: 1px solid black;">
<form class="form-horizontal" action="{{ url_for('predictKidney') }}" method="POST">
<div class="row">
Expand Down Expand Up @@ -173,7 +172,7 @@
</div>
<div class="col-md-2"></div>
</div>
<footer>
<footer style="position: fixed; bottom: 0; width: 100%;">
<center>
<ul style="list-style-type:none;">
<li style="display: inline;"><a href="https://github.com/IIITKalyaniFOSC" target="blank"><span class="fa fa-github"> GitHub</span></a></li>
Expand Down
Loading

0 comments on commit bf880d6

Please sign in to comment.