Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files- model.pkl +3 -0
- static/sstyle.css +0 -0
- templates/index.html +38 -0
model.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0dee138c904ac2e2623a1a04609df67e001596738582c398a7716f82a215649a
|
| 3 |
+
size 366219
|
static/sstyle.css
ADDED
|
File without changes
|
templates/index.html
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Bike Accident Prediction</title>
|
| 7 |
+
<link rel="stylesheet" href="/static/style.css">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<h2>Enter Values for Predicting Accident</h2>
|
| 11 |
+
<form action="/predict" method="post">
|
| 12 |
+
<ul>
|
| 13 |
+
<li>
|
| 14 |
+
<label for="x1">Weekly Speed violation qty:</label>
|
| 15 |
+
<input type="number" step="any" name="x1" min="0" required>
|
| 16 |
+
</li>
|
| 17 |
+
<li>
|
| 18 |
+
<label for="x2">Dark riding length (KM):</label>
|
| 19 |
+
<input type="number" step="any" name="x2" min="0" required>
|
| 20 |
+
</li>
|
| 21 |
+
<li>
|
| 22 |
+
<label for="x3">Defensive Driving Training:</label>
|
| 23 |
+
<input type="number" step="any" name="x3" min="0" max="1" required>
|
| 24 |
+
</li>
|
| 25 |
+
<li>
|
| 26 |
+
<label for="x4">Exeperience Category:</label>
|
| 27 |
+
<input type="number" step="any" name="x4" min="1" max="3" required>
|
| 28 |
+
<label for="x4">If Driver has recieved Defensive driving training, Choose-1, if not choose-0</label>
|
| 29 |
+
</li>
|
| 30 |
+
</ul>
|
| 31 |
+
<button type="submit">Predict</button>
|
| 32 |
+
</form>
|
| 33 |
+
|
| 34 |
+
{% if result %}
|
| 35 |
+
<h3>Possibility of Accident: {{ result }}</h3>
|
| 36 |
+
{% endif %}
|
| 37 |
+
</body>
|
| 38 |
+
</html>
|