xyplon commited on
Commit
1fca24d
1 Parent(s): 67c10d2

Update templates/models.html

Browse files
Files changed (1) hide show
  1. templates/models.html +284 -284
templates/models.html CHANGED
@@ -1,285 +1,285 @@
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
-
178
- <div class="container mt-4">
179
-
180
- <div class="row mt-4">
181
- <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 mb-3">
182
- <div class="input-group-div1">
183
- <input type="text" class="form-control" id="prompt" placeholder="Prompt" autocomplete="off">
184
- </div>
185
- </div>
186
- <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 mb-3">
187
- <div class="input-group-div">
188
- <input type="text" class="form-control" id="negative-prompt" placeholder="Negative Prompt" autocomplete="off" >
189
- </div>
190
- </div>
191
- <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3">
192
- <div class="input-group">
193
- <label class="input-group-text me-3" for="model" id="modelLabel" style="background-color: #1d1d1d;color: white;border: none;">Model</label>
194
- <select class="form-select" id="model" aria-label="Model Select">
195
- <option value="rvx4" selected>real vision xl 4</option>
196
- <option value="mobius">Mobius</option>
197
- <option value="animagine">Animagine xl 3.1</option>
198
- <option value="sd3">Stable Diffusion 3</option>
199
- <option value="sdflash">SDXL Flash</option>
200
-
201
- </select>
202
- </div>
203
- </div>
204
- <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3">
205
- <div class="input-group">
206
-
207
- <label class="input-group-text me-3" id="ratioLabel" for="ratio" style="background-color: #1d1d1d;color: white;border: none;margin: 0;">Image Ratio</label>
208
-
209
-
210
- <select class="form-select" id="ratio" aria-label="Ratio Select">
211
- <option selected value="1:1">1:1 (Square)</option>
212
- <option value="16:9">16:9 (Landscape)</option>
213
- <option value="9:16">9:16 (Portrait)</option>
214
- <option value="1:2">1:2</option>
215
- <option value="4:3">4:3</option>
216
- </select>
217
- </div>
218
- </div>
219
- <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3">
220
- <div class="input-group">
221
- <label class="input-group-text me-3" for="style" style="background-color: #1d1d1d;color: white;border: none;" id="styleLabel">Style:</label>
222
- <select class="form-select" id="style" aria-label="Style Select">
223
- <option value="Cinematic" name="style">Cinematic</option>
224
- <option value="Photography" name="style">Photography</option>
225
- <option value="Anime" name="style">Anime</option>
226
- <option value="Film" name="style">Film</option>
227
- <option value="Creative" name="style">Creative</option>
228
- <option value="Digital" name="style">Digital Art</option>
229
- <option value="3d" name="style">3D Model</option>
230
- <option value="No" name="style">No Style</option>
231
- </select>
232
- </div>
233
- </div>
234
- <div id="ranges" style="display: flex; gap: 15px; flex-wrap: wrap;">
235
- <div class="stepsRange" style="display: flex;gap: 10px;">
236
- <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>
237
- <input type="range" class="form-range" id="stepsRange" style="width: 200px;padding-top: 12px;" min="4" max="100" value="30">
238
- </div>
239
-
240
- <div class="guidenceRange" style="display: flex;gap: 10px;">
241
- <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">7</p></label>
242
- <input type="range" class="form-range" id="guidenceRange" style="width: 200px; padding-top: 12px; " min="2" max="20" value="4">
243
- </div>
244
- </div>
245
-
246
-
247
- <div class="col-12 text-center mt-4">
248
- <button type="button" class="btn btn-primary" id="btn">Generate Image ( Ctr + Enter) </button>
249
- </div>
250
- </div>
251
-
252
- <div class="container mt-4" id="cont4">
253
- <div id="imshow" >
254
-
255
-
256
- </div>
257
- </div>
258
-
259
-
260
- </div>
261
-
262
-
263
- </div>
264
-
265
-
266
- <script>
267
- document.getElementById('prompt').addEventListener('mouseover', () => {
268
- document.getElementById('prompt').placeholder = 'Enter Your Prompt';
269
- });
270
- document.getElementById('prompt').addEventListener('mouseout', () => {
271
- document.getElementById('prompt').placeholder = 'Prompt';
272
- });
273
- document.getElementById('prompt').addEventListener('input', function() {
274
- this.style.color = 'white';
275
- });
276
- document.getElementById('negative-prompt').addEventListener('input', function() {
277
- this.style.color = 'skyblue';
278
- });
279
-
280
- </script>
281
-
282
- <script src="{{ url_for('static', filename='models.js') }}"></script>
283
- <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>
284
- </body>
285
  </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
+
178
+ <div class="container mt-4">
179
+
180
+ <div class="row mt-4">
181
+ <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 mb-3">
182
+ <div class="input-group-div1">
183
+ <input type="text" class="form-control" id="prompt" placeholder="Prompt" autocomplete="off">
184
+ </div>
185
+ </div>
186
+ <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 mb-3">
187
+ <div class="input-group-div">
188
+ <input type="text" class="form-control" id="negative-prompt" placeholder="Negative Prompt" autocomplete="off" >
189
+ </div>
190
+ </div>
191
+ <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3">
192
+ <div class="input-group">
193
+ <label class="input-group-text me-3" for="model" id="modelLabel" style="background-color: #1d1d1d;color: white;border: none;">Model</label>
194
+ <select class="form-select" id="model" aria-label="Model Select">
195
+ <option value="rvx4" selected>real vision xl 4</option>
196
+ <option value="mobius">Mobius</option>
197
+ <option value="animagine">Animagine xl 3.1</option>
198
+ <option value="sd3">Stable Diffusion 3</option>
199
+ <option value="sdflash">SDXL Flash</option>
200
+
201
+ </select>
202
+ </div>
203
+ </div>
204
+ <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3">
205
+ <div class="input-group">
206
+
207
+ <label class="input-group-text me-3" id="ratioLabel" for="ratio" style="background-color: #1d1d1d;color: white;border: none;margin: 0;">Image Ratio</label>
208
+
209
+
210
+ <select class="form-select" id="ratio" aria-label="Ratio Select">
211
+ <option selected value="1:1">1:1 (Square)</option>
212
+ <option value="16:9">16:9 (Landscape)</option>
213
+ <option value="9:16">9:16 (Portrait)</option>
214
+ <option value="1:2">1:2</option>
215
+ <option value="4:3">4:3</option>
216
+ </select>
217
+ </div>
218
+ </div>
219
+ <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3">
220
+ <div class="input-group">
221
+ <label class="input-group-text me-3" for="style" style="background-color: #1d1d1d;color: white;border: none;" id="styleLabel">Style:</label>
222
+ <select class="form-select" id="style" aria-label="Style Select">
223
+ <option value="Cinematic" name="style">Cinematic</option>
224
+ <option value="Photography" name="style">Photography</option>
225
+ <option value="Anime" name="style">Anime</option>
226
+ <option value="Film" name="style">Film</option>
227
+ <option value="Creative" name="style">Creative</option>
228
+ <option value="Digital" name="style">Digital Art</option>
229
+ <option value="3d" name="style">3D Model</option>
230
+ <option value="No" name="style">No Style</option>
231
+ </select>
232
+ </div>
233
+ </div>
234
+ <div id="ranges" style="display: flex; gap: 15px; flex-wrap: wrap;">
235
+ <div class="stepsRange" style="display: flex;gap: 10px;">
236
+ <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>
237
+ <input type="range" class="form-range" id="stepsRange" style="width: 200px;padding-top: 12px;" min="4" max="100" value="30">
238
+ </div>
239
+
240
+ <div class="guidenceRange" style="display: flex;gap: 10px;">
241
+ <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>
242
+ <input type="range" class="form-range" id="guidenceRange" style="width: 200px; padding-top: 12px; " min="2" max="20" value="3">
243
+ </div>
244
+ </div>
245
+
246
+
247
+ <div class="col-12 text-center mt-4">
248
+ <button type="button" class="btn btn-primary" id="btn">Generate Image ( Ctr + Enter) </button>
249
+ </div>
250
+ </div>
251
+
252
+ <div class="container mt-4" id="cont4">
253
+ <div id="imshow" >
254
+
255
+
256
+ </div>
257
+ </div>
258
+
259
+
260
+ </div>
261
+
262
+
263
+ </div>
264
+
265
+
266
+ <script>
267
+ document.getElementById('prompt').addEventListener('mouseover', () => {
268
+ document.getElementById('prompt').placeholder = 'Enter Your Prompt';
269
+ });
270
+ document.getElementById('prompt').addEventListener('mouseout', () => {
271
+ document.getElementById('prompt').placeholder = 'Prompt';
272
+ });
273
+ document.getElementById('prompt').addEventListener('input', function() {
274
+ this.style.color = 'white';
275
+ });
276
+ document.getElementById('negative-prompt').addEventListener('input', function() {
277
+ this.style.color = 'skyblue';
278
+ });
279
+
280
+ </script>
281
+
282
+ <script src="{{ url_for('static', filename='models.js') }}"></script>
283
+ <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>
284
+ </body>
285
  </html>