-
Notifications
You must be signed in to change notification settings - Fork 0
/
interface.html
128 lines (107 loc) · 3.53 KB
/
interface.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>US Airbnb Price Predictor</title>
<style>
/* Reset default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
}
/* Background video */
.bg-video {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: -1;
}
.bg-video video {
min-width: 100%;
min-height: 100%;
}
/* Form container */
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(255, 255, 255, 0.6); /* Adjust transparency as needed */
padding: 20px;
border-radius: 10px;
max-width: 400px;
width: 90%;
text-align: center;
}
/* Form elements */
form {
margin-top: 20px;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"],
input[type="number"] {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
button {
width: 100%;
padding: 10px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
#result {
margin-top: 20px;
}
</style>
</head>
<body>
<div class="bg-video">
<video id="background-video" autoplay loop muted>
<source src="https://cdn.openai.com/sora/videos/tokyo-walk.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
<div class="container fade-in" id="formContainer">
<h1 id="head">Airbnb Price Prediction</h1>
<form id="inputForm" action="/predict" method="POST">
<label for="areaincome">Enter the Average Area Income :</label>
<input type="number" id="areaincome" name="areaincome" required>
<label for="houseage">Enter Average Area House Age :</label>
<input type="number" id="houseage" name="houseage" step="1" required>
<label for="noofrooms">Enter Average Area Number of Rooms :</label>
<input type="number" id="noofrooms" name="noofrooms" required>
<label for="noofbedrooms">Enter Average Area Number of Bedrooms :</label>
<input type="number" id="noofbedrooms" name="noofbedrooms" step="1" required>
<label for="areapopulation">Average Area Population :</label>
<input type="number" id="areapopulation" name="areapopulation" step="1" required>
<button type="submit">Predict</button>
</form>
<div id="result">
{% if prediction %}
Predicted Price: ${{ prediction|round(2) }}
{% endif %}
</div>
</div>
</body>
</html>