SAVAI123 commited on
Commit
6f27153
·
verified ·
1 Parent(s): 0741f17

Update templates/result.html

Browse files
Files changed (1) hide show
  1. templates/result.html +52 -5
templates/result.html CHANGED
@@ -1,12 +1,59 @@
1
  <!DOCTYPE html>
2
  <html>
3
  <head>
4
- <title>Transformation Result</title>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  </head>
6
  <body>
7
- <h1>Transformation Result</h1>
8
- <img src="{{ url_for('download_file', filename=filename) }}" style="max-width: 500px;">
9
- <p><a href="{{ url_for('download_file', filename=filename) }}">Download the image</a></p>
10
- <p><a href="/">Try another image</a></p>
 
 
 
 
 
 
 
 
 
 
 
 
11
  </body>
12
  </html>
 
1
  <!DOCTYPE html>
2
  <html>
3
  <head>
4
+ <title>Age Transformation Result</title>
5
+ <style>
6
+ body {
7
+ font-family: Arial, sans-serif;
8
+ max-width: 800px;
9
+ margin: 0 auto;
10
+ padding: 20px;
11
+ }
12
+ .container {
13
+ border: 1px solid #ddd;
14
+ border-radius: 5px;
15
+ padding: 20px;
16
+ margin-top: 20px;
17
+ }
18
+ .result-image {
19
+ max-width: 100%;
20
+ height: auto;
21
+ margin: 20px 0;
22
+ }
23
+ .button {
24
+ background-color: #4CAF50;
25
+ border: none;
26
+ color: white;
27
+ padding: 10px 20px;
28
+ text-align: center;
29
+ text-decoration: none;
30
+ display: inline-block;
31
+ font-size: 16px;
32
+ margin: 10px 2px;
33
+ cursor: pointer;
34
+ border-radius: 4px;
35
+ }
36
+ .home-button {
37
+ background-color: #2196F3;
38
+ }
39
+ </style>
40
  </head>
41
  <body>
42
+ <h1>Age Transformation Result</h1>
43
+
44
+ <div class="container">
45
+ <h2>Your rejuvenated image:</h2>
46
+ <img src="{{ url_for('display_image', filename=filename) }}" alt="Transformed Image" class="result-image">
47
+
48
+ <div>
49
+ <a href="{{ url_for('download_file', filename=filename) }}" class="button">Download Image</a>
50
+ <a href="/" class="button home-button">Try Another Image</a>
51
+ </div>
52
+ </div>
53
+
54
+ <div class="container">
55
+ <h3>Note:</h3>
56
+ <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>
57
+ </div>
58
  </body>
59
  </html>