xyplon commited on
Commit
b128fb8
·
verified ·
1 Parent(s): c4c3c7f

Delete templates

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