-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
86 lines (80 loc) · 3.64 KB
/
index.php
File metadata and controls
86 lines (80 loc) · 3.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FloraMind</title>
<link rel="icon" type="image/x-icon" href="img/fav.jpg">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="style.css" rel="stylesheet">
</head>
<body>
<div class="container mt-5">
<h1 class="text-center mb-4">FloraMind</h1>
<p class="text-center lead">Iris Flower Classifier</p>
<!-- Input Form -->
<form id="predictionForm" class="card p-4 mb-4">
<div class="row">
<div class="col-md-6">
<label for="sepalLength" class="form-label">Sepal Length (cm)</label>
<input type="number" class="form-control" id="sepalLength" name="sepal_length" step="0.1" required>
<div class="preview mt-2">Preview: <span id="sepalLengthPreview">0</span> cm</div>
</div>
<div class="col-md-6">
<label for="sepalWidth" class="form-label">Sepal Width (cm)</label>
<input type="number" class="form-control" id="sepalWidth" name="sepal_width" step="0.1" required>
<div class="preview mt-2">Preview: <span id="sepalWidthPreview">0</span> cm</div>
</div>
</div>
<div class="row mt-3">
<div class="col-md-6">
<label for="petalLength" class="form-label">Petal Length (cm)</label>
<input type="number" class="form-control" id="petalLength" name="petal_length" step="0.1" required>
<div class="preview mt-2">Preview: <span id="petalLengthPreview">0</span> cm</div>
</div>
<div class="col-md-6">
<label for="petalWidth" class="form-label">Petal Width (cm)</label>
<input type="number" class="form-control" id="petalWidth" name="petal_width" step="0.1" required>
<div class="preview mt-2">Preview: <span id="petalWidthPreview">0</span> cm</div>
</div>
</div>
<button type="submit" class="btn btn-primary mt-4">Predict Flower Type</button>
</form>
<!-- Prediction Result -->
<div id="result" class="card p-4 mb-4 d-none">
<h3 class="text-center">Prediction Result</h3>
<div id="predictionOutput" class="text-center"></div>
</div>
<!-- Past Predictions -->
<div class="card p-4">
<h3 class="text-center mb-3">Past Predictions</h3>
<table class="table table-striped">
<thead>
<tr>
<th>ID</th>
<th>Sepal L (cm)</th>
<th>Sepal W (cm)</th>
<th>Petal L (cm)</th>
<th>Petal W (cm)</th>
<th>Predicted Type</th>
<th>Timestamp</th>
</tr>
</thead>
<tbody id="pastPredictions"></tbody>
</table>
</div>
</div>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<!-- Custom JS -->
<script src="script.js"></script>
<footer>
<div class="footer">
<p>FloraMind © 2025</p>
<p>Developed by ARUNAGIRINATHAN • AI • Full Stack Developer</p>
</div>
</footer>
</body>
</html>