Switch to unified view

a b/flask/templates/index.html
1
<!DOCTYPE html>
2
<html >
3
<!--From https://codepen.io/frytyler/pen/EGdtg-->
4
<head>
5
  <meta charset="UTF-8">
6
  <title>Diabetes Predictor</title>
7
  <link href='https://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
8
<link href='https://fonts.googleapis.com/css?family=Arimo' rel='stylesheet' type='text/css'>
9
<link href='https://fonts.googleapis.com/css?family=Hind:300' rel='stylesheet' type='text/css'>
10
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
11
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
12
  
13
</head>
14
15
<body>
16
 <div class="login">
17
    <h1>Diabetes Predictor</h1>
18
19
     
20
    <form action="{{ url_for('predict')}}"method="post">
21
        <input type="text" name="Glucose Level" placeholder="Glucose Level" required="required" />
22
        <input type="text" name="Insulin" placeholder="Insulin" required="required" />
23
        <input type="text" name="BMI" placeholder="BMI" required="required" />
24
        <input type="text" name="Age" placeholder="Age" required="required" />
25
        
26
27
        <button type="submit" class="btn btn-primary btn-block btn-large">Predict</button>
28
    </form>
29
30
   <br>
31
   <br>
32
   {{ prediction_text }}
33
34
 </div>
35
36
37
</body>
38
</html>