Rename templates to templates/index.html
Browse files- templates +0 -0
- templates/index.html +93 -0
templates
DELETED
File without changes
|
templates/index.html
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>Car Price Prediction</title>
|
7 |
+
<style>
|
8 |
+
body {
|
9 |
+
font-family: Arial, sans-serif;
|
10 |
+
background-color: #f0f4f8;
|
11 |
+
color: #333;
|
12 |
+
margin: 0;
|
13 |
+
padding: 0;
|
14 |
+
display: flex;
|
15 |
+
justify-content: center;
|
16 |
+
align-items: center;
|
17 |
+
height: 100vh;
|
18 |
+
}
|
19 |
+
.container {
|
20 |
+
background-color: #fff;
|
21 |
+
border-radius: 8px;
|
22 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
23 |
+
padding: 20px;
|
24 |
+
max-width: 400px;
|
25 |
+
width: 100%;
|
26 |
+
}
|
27 |
+
h1 {
|
28 |
+
text-align: center;
|
29 |
+
color: #007bff;
|
30 |
+
}
|
31 |
+
form {
|
32 |
+
display: flex;
|
33 |
+
flex-direction: column;
|
34 |
+
}
|
35 |
+
label {
|
36 |
+
margin-bottom: 5px;
|
37 |
+
color: #555;
|
38 |
+
}
|
39 |
+
input[type="text"],
|
40 |
+
input[type="number"] {
|
41 |
+
padding: 10px;
|
42 |
+
margin-bottom: 15px;
|
43 |
+
border: 1px solid #ccc;
|
44 |
+
border-radius: 4px;
|
45 |
+
font-size: 16px;
|
46 |
+
}
|
47 |
+
button {
|
48 |
+
padding: 10px;
|
49 |
+
background-color: #007bff;
|
50 |
+
color: #fff;
|
51 |
+
border: none;
|
52 |
+
border-radius: 4px;
|
53 |
+
font-size: 16px;
|
54 |
+
cursor: pointer;
|
55 |
+
transition: background-color 0.3s ease;
|
56 |
+
}
|
57 |
+
button:hover {
|
58 |
+
background-color: #0056b3;
|
59 |
+
}
|
60 |
+
h2 {
|
61 |
+
text-align: center;
|
62 |
+
color: #28a745;
|
63 |
+
}
|
64 |
+
</style>
|
65 |
+
</head>
|
66 |
+
<body>
|
67 |
+
<div class="container">
|
68 |
+
<h1>Car Price Prediction</h1>
|
69 |
+
<form action="/predict" method="post">
|
70 |
+
<label for="name">Car Name:</label>
|
71 |
+
<input type="text" id="name" name="name" required>
|
72 |
+
|
73 |
+
<label for="company">Company:</label>
|
74 |
+
<input type="text" id="company" name="company" required>
|
75 |
+
|
76 |
+
<label for="year">Year:</label>
|
77 |
+
<input type="number" id="year" name="year" required>
|
78 |
+
|
79 |
+
<label for="kms_driven">Kms Driven:</label>
|
80 |
+
<input type="number" id="kms_driven" name="kms_driven" required>
|
81 |
+
|
82 |
+
<label for="fuel_type">Fuel Type:</label>
|
83 |
+
<input type="text" id="fuel_type" name="fuel_type" required>
|
84 |
+
|
85 |
+
<button type="submit">Predict Price</button>
|
86 |
+
</form>
|
87 |
+
|
88 |
+
{% if prediction %}
|
89 |
+
<h2>Predicted Price: {{ prediction }} INR</h2>
|
90 |
+
{% endif %}
|
91 |
+
</div>
|
92 |
+
</body>
|
93 |
+
</html>
|