File size: 1,715 Bytes
7edb5fe
 
 
 
cb7d288
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7edb5fe
 
cb7d288
 
 
ecf3782
cb7d288
 
 
 
 
ecf3782
cb7d288
7edb5fe
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!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>