Rahul23232's picture
Rename template/index.html to templates/index.html
dcae080 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Email Spam Detection</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f6f8;
text-align: center;
margin-top: 80px;
}
textarea {
width: 60%;
height: 150px;
padding: 10px;
font-size: 16px;
}
button {
padding: 10px 25px;
font-size: 16px;
margin-top: 15px;
cursor: pointer;
}
.result {
margin-top: 20px;
font-size: 20px;
font-weight: bold;
}
</style>
</head>
<body>
<h1>Email Spam Detection System</h1>
<form method="POST">
<textarea name="email" placeholder="Enter email text here..." required></textarea>
<br>
<button type="submit">Check Email</button>
</form>
{% if prediction %}
<div class="result">
Prediction: {{ prediction }}
</div>
{% endif %}
</body>
</html>