CNN / templates /index.html
Krippa's picture
Upload folder using huggingface_hub
ecf179e verified
Raw
History Blame Contribute Delete
1.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CIFAR-10 Classifier</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f4f9;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
h1 {
color: #4a90e2;
}
.container {
background: white;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
text-align: center;
}
input[type="file"] {
margin: 1rem 0;
}
button {
background-color: #4a90e2;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
}
button:hover {
background-color: #357abd;
}
.result {
margin-top: 2rem;
font-size: 1.2rem;
font-weight: bold;
}
</style>
</head>
<body>
<div class="container">
<h1>CIFAR-10 Image Classifier</h1>
<form method="post" enctype="multipart/form-data">
<input type="file" name="file" accept="image/*" required>
<br>
<button type="submit">Classify Image</button>
</form>
{% if prediction %}
<div class="result">
<p>Prediction: <span style="color: #e74c3c;">{{ prediction }}</span></p>
</div>
{% endif %}
</div>
</body>
</html>