--- a +++ b/flask/templates/index.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html > +<!--From https://codepen.io/frytyler/pen/EGdtg--> +<head> + <meta charset="UTF-8"> + <title>Diabetes Predictor</title> + <link href='https://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'> +<link href='https://fonts.googleapis.com/css?family=Arimo' rel='stylesheet' type='text/css'> +<link href='https://fonts.googleapis.com/css?family=Hind:300' rel='stylesheet' type='text/css'> +<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'> +<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}"> + +</head> + +<body> + <div class="login"> + <h1>Diabetes Predictor</h1> + + + <form action="{{ url_for('predict')}}"method="post"> + <input type="text" name="Glucose Level" placeholder="Glucose Level" required="required" /> + <input type="text" name="Insulin" placeholder="Insulin" required="required" /> + <input type="text" name="BMI" placeholder="BMI" required="required" /> + <input type="text" name="Age" placeholder="Age" required="required" /> + + + <button type="submit" class="btn btn-primary btn-block btn-large">Predict</button> + </form> + + <br> + <br> + {{ prediction_text }} + + </div> + + +</body> +</html>