zhaozengxi commited on
Commit
f05877a
1 Parent(s): 6b7a885

Upload models.html

Browse files
Files changed (1) hide show
  1. templates/models.html +283 -285
templates/models.html CHANGED
@@ -1,286 +1,284 @@
1
-
2
- <!DOCTYPE html>
3
- <html lang="en">
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>Stable Diffusion Models Demo</title>
8
- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
9
- <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@100&display=swap" rel="stylesheet" <meta
10
- charset="UTF-8">
11
- <style>
12
- body {
13
- background-color: #030303;
14
- color: #ffffff;
15
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
16
- width: 100%;
17
- overflow-x: hidden;
18
-
19
- }
20
- html,body{
21
- overflow-x: hidden;
22
- }
23
-
24
- .form-control,
25
- .form-select {
26
- background-color: #1a1a1a;
27
- color: #ffffff;
28
- border: none;
29
- border-radius: 0;
30
- }
31
-
32
-
33
-
34
- .form-control::placeholder {
35
- color: #d8d8d8;
36
- }
37
- .form-control:focus,
38
- .form-select:focus {
39
- outline: none;
40
- border-color: transparent;
41
- }
42
- .btn-primary {
43
- background: linear-gradient(155deg, rgb(0, 149, 249), #9D00FF, rgb(255, 0, 43));
44
- border: none;
45
- }
46
- .btn-primary:hover {
47
- background: linear-gradient(145deg, #00ffab, rgb(255, 0, 43));
48
- }
49
- .btn-primary:focus {
50
- box-shadow: none;
51
- }
52
- #prompt{
53
- background-color: #030303;
54
- outline: 4px solid #030303;
55
- }
56
-
57
- #negative-prompt{
58
- background-color: #1b1b1b;
59
- border: 1px solid #141414;
60
- border-radius: 10px;
61
- outline: 3px solid #141414;
62
- }
63
- #modelLabel{
64
- background: linear-gradient(155deg, rgb(0, 249, 228), #d400ff, rgb(255, 0, 212));
65
- }
66
- #ratioLabel{
67
- background: linear-gradient(155deg, rgb(0, 199, 249), #9D00FF, rgb(255, 0, 119));
68
- }
69
- #styleLabel{
70
- background: linear-gradient(155deg, rgb(0, 249, 249), #a200ff, rgb(255, 0, 191));
71
- }
72
- .form-range::-webkit-slider-runnable-track {
73
- background-color: #1d1d1d;
74
- }
75
-
76
- .form-range::-moz-range-track {
77
- background-color: #1d1d1d;
78
- }
79
-
80
- .form-range::-ms-track {
81
- background-color: #1d1d1d;
82
- }
83
- .form-range::-webkit-slider-thumb {
84
- background: linear-gradient(155deg, rgb(0, 249, 228), #d400ff, rgb(255, 0, 34));;
85
- }
86
-
87
- .form-range::-moz-range-thumb {
88
- background: gray;
89
- }
90
-
91
- .form-range::-ms-thumb {
92
- background: gray;
93
- }
94
- .input-group-div1{
95
- background-color: #030303;
96
- padding: 5px;
97
-
98
- background: linear-gradient(rgb(0, 0, 0), black) padding-box,
99
- linear-gradient(to left, rgb(255, 1, 98), rgb(175, 2, 255)) border-box;
100
- border: 1.5px solid transparent;
101
- border-radius: 7px;
102
- }
103
- .input-group-div{
104
- padding: 5px;
105
- background: #131313;
106
- border-radius: 10px;
107
- }
108
- .input-group-div1:hover{
109
- background: linear-gradient(rgb(0, 0, 0), black) padding-box,
110
- linear-gradient(to left, rgb(204, 1, 255), rgb(255, 2, 44)) border-box;
111
-
112
-
113
- }
114
-
115
- @keyframes colorChange {
116
- 0% {
117
- color: rgb(7, 205, 240) ;
118
- }
119
- 25% {
120
- color: rgb(214, 12, 130);
121
- }
122
- 50% {
123
- color: #09cfe9;
124
- }
125
- 75% {
126
- color: #e2335f;
127
- }
128
- 100% {
129
- color: rgb(240, 4, 102);
130
- }
131
- }
132
- .col-12 p{
133
- animation: colorChange 10s infinite;
134
- font-family: 'Barlow Condensed';
135
- font-size: 25px;
136
- font-weight: bold;
137
- }
138
- #imshow {
139
- display: flex;
140
- flex-wrap: wrap;
141
- gap: 10px;
142
- justify-content: center;
143
- align-items: center;
144
- }
145
- #loader{
146
- margin: auto;
147
- width: fit-content;
148
- text-align: center;
149
-
150
-
151
-
152
- }
153
- #cont4{
154
- max-width: 95vw;
155
- }
156
- #imshow img{
157
- max-width: 280px;
158
- margin: 0;
159
- padding: 0;
160
- }
161
- #lds{
162
- max-width: 350px;
163
- }
164
- @media screen and (max-width: 600px) {
165
- #imshow{
166
- justify-content: center;
167
- align-items: center;
168
- }
169
- #imshow img{
170
- max-width: 320px;
171
- }
172
- }
173
-
174
- </style>
175
- </head>
176
- <body>
177
- <a href="https://discord.gg/tRC7hNXfPH" target="_blank" style="margin-left: 10px; font-size: 19px" >Join Discord</a>
178
- <a href="https://buymeacoffee.com/Xyplon" target="_blank" style="margin-left: 10px; font-size: 19px">Buy me a coffee ☕ </a>
179
- <div class="container mt-4">
180
-
181
- <div class="row mt-4">
182
- <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 mb-3">
183
- <div class="input-group-div1">
184
- <input type="text" class="form-control" id="prompt" placeholder="Prompt" autocomplete="off">
185
- </div>
186
- </div>
187
- <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 mb-3">
188
- <div class="input-group-div">
189
- <input type="text" class="form-control" id="negative-prompt" placeholder="Negative Prompt" autocomplete="off" >
190
- </div>
191
- </div>
192
- <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3">
193
- <div class="input-group">
194
- <label class="input-group-text me-3" for="model" id="modelLabel" style="background-color: #1d1d1d;color: white;border: none;">Model</label>
195
- <select class="form-select" id="model" aria-label="Model Select">
196
- <option value="rvs4" selected>real vision xl 4</option>
197
- <option value="mobius">Mobius</option>
198
-
199
- <option value="sd3">Stable Diffusion 3</option>
200
- <option value="sdflash">SDXL Flash</option>
201
-
202
- </select>
203
- </div>
204
- </div>
205
- <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3">
206
- <div class="input-group">
207
-
208
- <label class="input-group-text me-3" id="ratioLabel" for="ratio" style="background-color: #1d1d1d;color: white;border: none;margin: 0;">Image Ratio</label>
209
-
210
-
211
- <select class="form-select" id="ratio" aria-label="Ratio Select">
212
- <option selected value="1:1">1:1 (Square)</option>
213
- <option value="16:9">16:9 (Landscape)</option>
214
- <option value="9:16">9:16 (Portrait)</option>
215
- <option value="1:2">1:2</option>
216
- <option value="4:3">4:3</option>
217
- </select>
218
- </div>
219
- </div>
220
- <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3">
221
- <div class="input-group">
222
- <label class="input-group-text me-3" for="style" style="background-color: #1d1d1d;color: white;border: none;" id="styleLabel">Style:</label>
223
- <select class="form-select" id="style" aria-label="Style Select">
224
- <option value="Cinematic" name="style">Cinematic</option>
225
- <option value="Photography" name="style">Photography</option>
226
- <option value="Anime" name="style">Anime</option>
227
- <option value="Film" name="style">Film</option>
228
- <option value="Creative" name="style">Creative</option>
229
- <option value="Digital" name="style">Digital Art</option>
230
- <option value="3d" name="style">3D Model</option>
231
- <option value="No" name="style">No Style</option>
232
- </select>
233
- </div>
234
- </div>
235
- <div id="ranges" style="display: flex; gap: 15px; flex-wrap: wrap;">
236
- <div class="stepsRange" style="display: flex;gap: 10px;">
237
- <label for="stepsRange" class="form-label" style="background-color: #1d1d1d;color: white;border: none; padding-left: 10px; padding-right: 10px; padding-top: 6px; padding-bottom: 6px;">Steps: <p style="display: inline;" id="stepValue">30</p></label>
238
- <input type="range" class="form-range" id="stepsRange" style="width: 200px;padding-top: 12px;" min="4" max="100" value="30">
239
- </div>
240
-
241
- <div class="guidenceRange" style="display: flex;gap: 10px;">
242
- <label for="stepsRange" class="form-label" style="background-color: #1d1d1d;color: white;border: none; padding-left: 10px; padding-right: 10px; padding-top: 6px; padding-bottom: 6px;">Guidence Scale: <p style="display: inline;" id="guidenceValue">3</p></label>
243
- <input type="range" class="form-range" id="guidenceRange" style="width: 200px; padding-top: 12px; " min="2" max="20" value="3">
244
- </div>
245
- </div>
246
-
247
-
248
- <div class="col-12 text-center mt-4">
249
- <button type="button" class="btn btn-primary" id="btn">Generate Image ( Ctr + Enter) </button>
250
- </div>
251
- </div>
252
-
253
- <div class="container mt-4" id="cont4">
254
- <div id="imshow" >
255
-
256
-
257
- </div>
258
- </div>
259
-
260
-
261
- </div>
262
-
263
-
264
- </div>
265
-
266
-
267
- <script>
268
- document.getElementById('prompt').addEventListener('mouseover', () => {
269
- document.getElementById('prompt').placeholder = 'Enter Your Prompt';
270
- });
271
- document.getElementById('prompt').addEventListener('mouseout', () => {
272
- document.getElementById('prompt').placeholder = 'Prompt';
273
- });
274
- document.getElementById('prompt').addEventListener('input', function() {
275
- this.style.color = 'white';
276
- });
277
- document.getElementById('negative-prompt').addEventListener('input', function() {
278
- this.style.color = 'skyblue';
279
- });
280
-
281
- </script>
282
-
283
- <script src="{{ url_for('static', filename='models.js') }}"></script>
284
- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
285
- </body>
286
  </html>
 
1
+
2
+ <!DOCTYPE html>
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>Stable Diffusion Models Demo</title>
8
+ <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
9
+ <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@100&display=swap" rel="stylesheet" <meta
10
+ charset="UTF-8">
11
+ <style>
12
+ body {
13
+ background-color: #030303;
14
+ color: #ffffff;
15
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
16
+ width: 100%;
17
+ overflow-x: hidden;
18
+
19
+ }
20
+ html,body{
21
+ overflow-x: hidden;
22
+ }
23
+
24
+ .form-control,
25
+ .form-select {
26
+ background-color: #1a1a1a;
27
+ color: #ffffff;
28
+ border: none;
29
+ border-radius: 0;
30
+ }
31
+
32
+
33
+
34
+ .form-control::placeholder {
35
+ color: #d8d8d8;
36
+ }
37
+ .form-control:focus,
38
+ .form-select:focus {
39
+ outline: none;
40
+ border-color: transparent;
41
+ }
42
+ .btn-primary {
43
+ background: linear-gradient(155deg, rgb(0, 149, 249), #9D00FF, rgb(255, 0, 43));
44
+ border: none;
45
+ }
46
+ .btn-primary:hover {
47
+ background: linear-gradient(145deg, #00ffab, rgb(255, 0, 43));
48
+ }
49
+ .btn-primary:focus {
50
+ box-shadow: none;
51
+ }
52
+ #prompt{
53
+ background-color: #030303;
54
+ outline: 4px solid #030303;
55
+ }
56
+
57
+ #negative-prompt{
58
+ background-color: #1b1b1b;
59
+ border: 1px solid #141414;
60
+ border-radius: 10px;
61
+ outline: 3px solid #141414;
62
+ }
63
+ #modelLabel{
64
+ background: linear-gradient(155deg, rgb(0, 249, 228), #d400ff, rgb(255, 0, 212));
65
+ }
66
+ #ratioLabel{
67
+ background: linear-gradient(155deg, rgb(0, 199, 249), #9D00FF, rgb(255, 0, 119));
68
+ }
69
+ #styleLabel{
70
+ background: linear-gradient(155deg, rgb(0, 249, 249), #a200ff, rgb(255, 0, 191));
71
+ }
72
+ .form-range::-webkit-slider-runnable-track {
73
+ background-color: #1d1d1d;
74
+ }
75
+
76
+ .form-range::-moz-range-track {
77
+ background-color: #1d1d1d;
78
+ }
79
+
80
+ .form-range::-ms-track {
81
+ background-color: #1d1d1d;
82
+ }
83
+ .form-range::-webkit-slider-thumb {
84
+ background: linear-gradient(155deg, rgb(0, 249, 228), #d400ff, rgb(255, 0, 34));;
85
+ }
86
+
87
+ .form-range::-moz-range-thumb {
88
+ background: gray;
89
+ }
90
+
91
+ .form-range::-ms-thumb {
92
+ background: gray;
93
+ }
94
+ .input-group-div1{
95
+ background-color: #030303;
96
+ padding: 5px;
97
+
98
+ background: linear-gradient(rgb(0, 0, 0), black) padding-box,
99
+ linear-gradient(to left, rgb(255, 1, 98), rgb(175, 2, 255)) border-box;
100
+ border: 1.5px solid transparent;
101
+ border-radius: 7px;
102
+ }
103
+ .input-group-div{
104
+ padding: 5px;
105
+ background: #131313;
106
+ border-radius: 10px;
107
+ }
108
+ .input-group-div1:hover{
109
+ background: linear-gradient(rgb(0, 0, 0), black) padding-box,
110
+ linear-gradient(to left, rgb(204, 1, 255), rgb(255, 2, 44)) border-box;
111
+
112
+
113
+ }
114
+
115
+ @keyframes colorChange {
116
+ 0% {
117
+ color: rgb(7, 205, 240) ;
118
+ }
119
+ 25% {
120
+ color: rgb(214, 12, 130);
121
+ }
122
+ 50% {
123
+ color: #09cfe9;
124
+ }
125
+ 75% {
126
+ color: #e2335f;
127
+ }
128
+ 100% {
129
+ color: rgb(240, 4, 102);
130
+ }
131
+ }
132
+ .col-12 p{
133
+ animation: colorChange 10s infinite;
134
+ font-family: 'Barlow Condensed';
135
+ font-size: 25px;
136
+ font-weight: bold;
137
+ }
138
+ #imshow {
139
+ display: flex;
140
+ flex-wrap: wrap;
141
+ gap: 10px;
142
+ justify-content: center;
143
+ align-items: center;
144
+ }
145
+ #loader{
146
+ margin: auto;
147
+ width: fit-content;
148
+ text-align: center;
149
+
150
+
151
+
152
+ }
153
+ #cont4{
154
+ max-width: 95vw;
155
+ }
156
+ #imshow img{
157
+ max-width: 280px;
158
+ margin: 0;
159
+ padding: 0;
160
+ }
161
+ #lds{
162
+ max-width: 350px;
163
+ }
164
+ @media screen and (max-width: 600px) {
165
+ #imshow{
166
+ justify-content: center;
167
+ align-items: center;
168
+ }
169
+ #imshow img{
170
+ max-width: 320px;
171
+ }
172
+ }
173
+
174
+ </style>
175
+ </head>
176
+ <body>
177
+ <div class="container mt-4">
178
+
179
+ <div class="row mt-4">
180
+ <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 mb-3">
181
+ <div class="input-group-div1">
182
+ <input type="text" class="form-control" id="prompt" placeholder="输入你想在图片中看到的内容" autocomplete="off">
183
+ </div>
184
+ </div>
185
+ <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 mb-3">
186
+ <div class="input-group-div">
187
+ <input type="text" class="form-control" id="negative-prompt" placeholder="输入你不想在图片中看到的内容" autocomplete="off" >
188
+ </div>
189
+ </div>
190
+ <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3">
191
+ <div class="input-group">
192
+ <label class="input-group-text me-3" for="model" id="modelLabel" style="background-color: #1d1d1d;color: white;border: none;">模型</label>
193
+ <select class="form-select" id="model" aria-label="Model Select">
194
+ <option value="rvs4" selected>real vision xl 4</option>
195
+ <option value="mobius">Mobius</option>
196
+
197
+ <option value="sd3">Stable Diffusion 3</option>
198
+ <option value="sdflash">SDXL Flash</option>
199
+
200
+ </select>
201
+ </div>
202
+ </div>
203
+ <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3">
204
+ <div class="input-group">
205
+
206
+ <label class="input-group-text me-3" id="ratioLabel" for="ratio" style="background-color: #1d1d1d;color: white;border: none;margin: 0;">图像比例</label>
207
+
208
+
209
+ <select class="form-select" id="ratio" aria-label="Ratio Select">
210
+ <option selected value="1:1">1:1 (正方形)</option>
211
+ <option value="16:9">16:9 (横向)</option>
212
+ <option value="9:16">9:16 (竖向)</option>
213
+ <option value="1:2">1:2</option>
214
+ <option value="4:3">4:3</option>
215
+ </select>
216
+ </div>
217
+ </div>
218
+ <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3">
219
+ <div class="input-group">
220
+ <label class="input-group-text me-3" for="style" style="background-color: #1d1d1d;color: white;border: none;" id="styleLabel">图像风格:</label>
221
+ <select class="form-select" id="style" aria-label="Style Select">
222
+ <option value="Cinematic" name="style">电影</option>
223
+ <option value="Photography" name="style">相片</option>
224
+ <option value="Anime" name="style">动漫</option>
225
+ <option value="Film" name="style">胶片</option>
226
+ <option value="Creative" name="style">有创造性的</option>
227
+ <option value="Digital" name="style">数字艺术</option>
228
+ <option value="3d" name="style">3D模型</option>
229
+ <option value="No" name="style">没有风格</option>
230
+ </select>
231
+ </div>
232
+ </div>
233
+ <div id="ranges" style="display: flex; gap: 15px; flex-wrap: wrap;">
234
+ <div class="stepsRange" style="display: flex;gap: 10px;">
235
+ <label for="stepsRange" class="form-label" style="background-color: #1d1d1d;color: white;border: none; padding-left: 10px; padding-right: 10px; padding-top: 6px; padding-bottom: 6px;">生成步数: <p style="display: inline;" id="stepValue">30</p></label>
236
+ <input type="range" class="form-range" id="stepsRange" style="width: 200px;padding-top: 12px;" min="4" max="100" value="30">
237
+ </div>
238
+
239
+ <div class="guidenceRange" style="display: flex;gap: 10px;">
240
+ <label for="stepsRange" class="form-label" style="background-color: #1d1d1d;color: white;border: none; padding-left: 10px; padding-right: 10px; padding-top: 6px; padding-bottom: 6px;">图像平衡: <p style="display: inline;" id="guidenceValue">3</p></label>
241
+ <input type="range" class="form-range" id="guidenceRange" style="width: 200px; padding-top: 12px; " min="2" max="20" value="3">
242
+ </div>
243
+ </div>
244
+
245
+
246
+ <div class="col-12 text-center mt-4">
247
+ <button type="button" class="btn btn-primary" id="btn">生成图像 ( Ctrl + Enter) </button>
248
+ </div>
249
+ </div>
250
+
251
+ <div class="container mt-4" id="cont4">
252
+ <div id="imshow" >
253
+
254
+
255
+ </div>
256
+ </div>
257
+
258
+
259
+ </div>
260
+
261
+
262
+ </div>
263
+
264
+
265
+ <script>
266
+ document.getElementById('prompt').addEventListener('mouseover', () => {
267
+ document.getElementById('prompt').placeholder = '输入Prompt';
268
+ });
269
+ document.getElementById('prompt').addEventListener('mouseout', () => {
270
+ document.getElementById('prompt').placeholder = '输入你想看到的提示词';
271
+ });
272
+ document.getElementById('prompt').addEventListener('input', function() {
273
+ this.style.color = 'white';
274
+ });
275
+ document.getElementById('negative-prompt').addEventListener('input', function() {
276
+ this.style.color = 'skyblue';
277
+ });
278
+
279
+ </script>
280
+
281
+ <script src="{{ url_for('static', filename='models.js') }}"></script>
282
+ <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
283
+ </body>
 
 
284
  </html>