File size: 1,709 Bytes
50fc8be
 
 
6f27153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50fc8be
 
6f27153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50fc8be
 
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
<!DOCTYPE html>
<html>
<head>
    <title>Age Transformation Result</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }
        .container {
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 20px;
            margin-top: 20px;
        }
        .result-image {
            max-width: 100%;
            height: auto;
            margin: 20px 0;
        }
        .button {
            background-color: #4CAF50;
            border: none;
            color: white;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            margin: 10px 2px;
            cursor: pointer;
            border-radius: 4px;
        }
        .home-button {
            background-color: #2196F3;
        }
    </style>
</head>
<body>
    <h1>Age Transformation Result</h1>
    
    <div class="container">
        <h2>Your rejuvenated image:</h2>
        <img src="{{ url_for('display_image', filename=filename) }}" alt="Transformed Image" class="result-image">
        
        <div>
            <a href="{{ url_for('download_file', filename=filename) }}" class="button">Download Image</a>
            <a href="/" class="button home-button">Try Another Image</a>
        </div>
    </div>
    
    <div class="container">
        <h3>Note:</h3>
        <p>The current implementation uses a random latent vector rather than encoding your actual image. For more accurate results, a proper encoder would need to be implemented.</p>
    </div>
</body>
</html>