--- a +++ b/templates/index.html @@ -0,0 +1,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>