fastapi_dummy / templates /result.html
senthil3226w's picture
Update templates/result.html
cb7d288 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interpolated Frames</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #f4f4f9;
}
.container {
margin: 20px auto;
width: 80%;
}
h1 {
color: #333;
}
.frame-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
}
.frame-container img {
max-width: 100%;
height: auto;
border: 1px solid #ddd;
padding: 5px;
background-color: white;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
.back-link {
margin-top: 20px;
display: inline-block;
padding: 10px 15px;
color: white;
background-color: #007bff;
text-decoration: none;
border-radius: 5px;
}
.back-link:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div class="container">
<h1>Interpolated Frames</h1>
<p>Here are the frames generated between the two uploaded images:</p>
<div class="frame-container">
{% for frame in frames %}
<img src="data:image/png;base64,{{ frame }}" alt="Interpolated Frame">
{% endfor %}
</div>
<a href="/" class="back-link">Back to Upload</a>
</div>
</body>
</html>