TDN-M commited on
Commit
71988fe
·
verified ·
1 Parent(s): 5595b1c

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +61 -19
index.html CHANGED
@@ -1,19 +1,61 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>CaslaQuartz Static</title>
7
+ <link rel="stylesheet" href="styles.css">
8
+ </head>
9
+ <body>
10
+ <div class="container">
11
+ <h1>CaslaQuartz Image Generator</h1>
12
+
13
+ <div class="tabs">
14
+ <button onclick="switchTab('text2img')" class="active">Text2Img</button>
15
+ <button onclick="switchTab('img2img')">Img2Img</button>
16
+ </div>
17
+
18
+ <!-- Text2Img Tab -->
19
+ <div id="text2img" class="tab-content">
20
+ <input type="text" id="prompt" placeholder="Enter a prompt...">
21
+ <select id="size">
22
+ <option value="1152x768">1152x768</option>
23
+ <option value="1024x1024" selected>1024x1024</option>
24
+ <option value="768x1152">768x1152</option>
25
+ <option value="Custom size">Custom size</option>
26
+ </select>
27
+ <input type="text" id="custom-size" placeholder="Width x Height (e.g., 1280x720)" style="display: none;">
28
+ <div id="product-groups"></div>
29
+ <button onclick="generateText2Img()">Generate</button>
30
+ </div>
31
+
32
+ <!-- Img2Img Tab -->
33
+ <div id="img2img" class="tab-content" style="display: none;">
34
+ <input type="file" id="image-upload">
35
+ <select id="position">
36
+ <option value="Wall">Wall</option>
37
+ <option value="Countertop">Countertop</option>
38
+ <option value="Floor">Floor</option>
39
+ <!-- Thêm các option khác từ mã gốc -->
40
+ </select>
41
+ <select id="size-img2img">
42
+ <option value="1152x768">1152x768</option>
43
+ <option value="1024x1024" selected>1024x1024</option>
44
+ <option value="768x1152">768x1152</option>
45
+ <option value="Custom size">Custom size</option>
46
+ </select>
47
+ <input type="text" id="custom-size-img2img" placeholder="Width x Height (e.g., 1280x720)" style="display: none;">
48
+ <div id="product-groups-img2img"></div>
49
+ <button onclick="generateImg2Img()">Generate</button>
50
+ </div>
51
+
52
+ <div id="progress" class="progress-container" style="display: none;">
53
+ <div class="progress-bar" style="width: 0%;"></div>
54
+ </div>
55
+ <p id="error" style="color: red; display: none;"></p>
56
+ <img id="output-image" style="display: none; max-width: 100%;">
57
+ </div>
58
+
59
+ <script src="script.js"></script>
60
+ </body>
61
+ </html>