SAVAI123 commited on
Commit
0741f17
·
verified ·
1 Parent(s): 8866c4b

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +63 -6
templates/index.html CHANGED
@@ -1,13 +1,70 @@
 
1
  <!DOCTYPE html>
2
  <html>
3
  <head>
4
- <title>Age Transformation App</title>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  </head>
6
  <body>
7
- <h1>Upload an image to make it look younger</h1>
8
- <form action="/" method="post" enctype="multipart/form-data">
9
- <input type="file" name="file" accept="image/*">
10
- <input type="submit" value="Transform">
11
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  </body>
13
  </html>
 
1
+ <!-- templates/index.html -->
2
  <!DOCTYPE html>
3
  <html>
4
  <head>
5
+ <title>StyleGAN3 Age Transformation</title>
6
+ <style>
7
+ body {
8
+ font-family: Arial, sans-serif;
9
+ max-width: 800px;
10
+ margin: 0 auto;
11
+ padding: 20px;
12
+ }
13
+ .container {
14
+ border: 1px solid #ddd;
15
+ border-radius: 5px;
16
+ padding: 20px;
17
+ margin-top: 20px;
18
+ }
19
+ .error {
20
+ color: red;
21
+ margin-bottom: 15px;
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
+ .file-input {
37
+ margin: 10px 0;
38
+ }
39
+ </style>
40
  </head>
41
  <body>
42
+ <h1>StyleGAN3 Age Transformation</h1>
43
+ <p>Upload a face image to make it look younger using StyleGAN3.</p>
44
+
45
+ <div class="container">
46
+ {% if error %}
47
+ <div class="error">
48
+ <p>{{ error }}</p>
49
+ </div>
50
+ {% endif %}
51
+
52
+ <form action="/" method="post" enctype="multipart/form-data">
53
+ <div class="file-input">
54
+ <label for="file">Select image:</label>
55
+ <input type="file" id="file" name="file" accept="image/*">
56
+ </div>
57
+ <input type="submit" value="Transform" class="button">
58
+ </form>
59
+ </div>
60
+
61
+ <div class="container">
62
+ <h3>Notes:</h3>
63
+ <ul>
64
+ <li>This application works best with front-facing portrait photos.</li>
65
+ <li>The current implementation uses a random latent vector rather than encoding your actual image.</li>
66
+ <li>To get accurate results, a proper encoder would need to be implemented.</li>
67
+ </ul>
68
+ </div>
69
  </body>
70
  </html>