[d366d1]: / templates / index.html

Download this file

23 lines (19 with data), 588 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Prediction</title>
</head>
<body>
<h1>Upload Image for Prediction</h1>
<!-- Image Upload Form -->
<form action="/predict" method="POST" enctype="multipart/form-data">
<input type="file" name="file" accept="image/*" required>
<button type="submit">Upload Image</button>
</form>
{% if prediction %}
<h2>Prediction Result: {{ prediction }}</h2>
{% endif %}
</body>
</html>