-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
23 lines (23 loc) · 1.13 KB
/
index.html
File metadata and controls
23 lines (23 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html lang = "en">
<head>
<meta charset = "utf-8">
<title>ML Model Deployed Using Flask</title>
<link rel="stylesheet" href = "static/styles.css">
</head>
<body>
<div class = "format">
<h1>Prediction of CO<sub>2</sub> Emissions</h1>
<form action = "{{url_for('predict')}}" method = "post">
<input type = "text" name = "enginesize" placeholder = "Engine capacity in Litres" required = "required">
<input type = "text" name = "cylinders" placeholder = "Number of cyclinders" required = "required">
<input type = "text" name = "fuel_consumption_city" placeholder = "Fuel consumption in the city (L/100 km)" required = "required">
<input type = "text" name = "fuel_consumption_highway" placeholder = "Fuel consumption on highways (L/100km)" required = "required">
<input type = "text" name = "fuel_consumption_combination_mpg" placeholder = "Combined fuel consumption in cities and highways (L/100km)" required = "required">
<button type="submit" class="btn btn-primary btn-block btn-large">Predict CO<sub>2</sub> Emissions</button>
</form>
<br>
{{prediction_text}}
</div>
</body>
</html>