[32c3b9]: / templates / index.html

Download this file

148 lines (143 with data), 4.6 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Diabetes Patient's Readmission Prediction</title>
<link
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
rel="stylesheet"
/>
<style>
.container {
max-width: 500px; /* Adjust the width as needed */
margin: auto;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Shadow effect */
padding: 20px;
background-color: white;
border-radius: 10px;
}
.disclaimer {
margin-top: 20px;
font-size: 0.85em;
text-align: center;
}
</style>
</head>
<body>
<div class="container">
<h2 class="my-4">Diabetes Patient's Readmission Prediction</h2>
<!-- Check if prediction is available -->
{% if prediction is defined %}
<div class="alert alert-info">Prediction: {{ prediction }}</div>
{% endif %}
<!-- Display error message if present -->
{% if error is defined %}
<div class="alert alert-danger text-center">{{ error }}</div>
{% endif %}
<form action="/predict" method="post">
<div class="form-group">
<label for="number_inpatient">Number of Times as Inpatient</label>
<input
type="number"
class="form-control"
id="number_inpatient"
name="number_inpatient"
value="0"
required
/>
</div>
<div class="form-group">
<label for="number_emergency">Number Emergency Cases</label>
<input
type="number"
class="form-control"
id="number_emergency"
name="number_emergency"
value="0"
required
/>
</div>
<div class="form-group">
<label for="number_emergency">Number of Diagnosis</label>
<input
type="number"
class="form-control"
id="number_diagnosis"
name="number_diagnosis"
value="0"
required
/>
</div>
<div class="form-group">
<label for="number_emergency">Number of times as Outpatient</label>
<input
type="number"
class="form-control"
id="number_outpatient"
name="number_outpatient"
value="0"
required
/>
</div>
<div class="form-group">
<label for="number_emergency">Number of Dig-1-428</label>
<input
type="number"
class="form-control"
id="nummer_dig_1_428"
name="number_dig_1_428"
value="0"
required
/>
</div>
<div class="form-group">
<label for="number_emergency">Number of Diabetes Medication</label>
<input
type="number"
class="form-control"
id="number_diabetesMed_Yes"
name="number_diabetesMed_Yes"
value="0"
required
/>
</div>
<div class="form-group">
<label for="number_emergency">Number of Medication</label>
<input
type="number"
class="form-control"
id="number_num_medications"
name="number_num_medications"
value="0"
required
/>
</div>
<div class="form-group">
<label for="number_emergency">Number of Times in Hospital</label>
<input
type="number"
class="form-control"
id="number_time_in_hospital"
name="number_time_in_hospital"
value="0"
required
/>
</div>
<div class="text-center">
<button type="submit" class="btn-lg btn-primary">Predict</button>
</div>
</form>
<div class="disclaimer">
<p>
<strong class="text-danger">Please Note:</strong>This prediction is
not a medical diagnosis and should not be taken as such. Always
consult with a healthcare professional for medical advice.
</p>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</body>
</html>