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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
<script type='text/javascript'>
|
7 |
+
window.smartlook||(function(d) {
|
8 |
+
var o=smartlook=function(){ o.api.push(arguments)},h=d.getElementsByTagName('head')[0];
|
9 |
+
var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript';
|
10 |
+
c.charset='utf-8';c.src='https://web-sdk.smartlook.com/recorder.js';h.appendChild(c);
|
11 |
+
})(document);
|
12 |
+
smartlook('init', 'ab064cf709cc86cb945d2dfb051a3a1254d7fb19', { region: 'eu' });
|
13 |
+
</script>
|
14 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
15 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
16 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.11/katex.min.css">
|
17 |
+
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@100&display=swap" rel="stylesheet" <meta
|
18 |
+
charset="UTF-8">
|
19 |
+
<title>AI Image Creator</title>
|
20 |
+
<style>
|
21 |
+
html, body {
|
22 |
+
margin: 0;
|
23 |
+
padding: 0;
|
24 |
+
box-sizing: border-box;
|
25 |
+
overflow-x: hidden !important;
|
26 |
+
}
|
27 |
+
body {
|
28 |
+
background-color: #000000;
|
29 |
+
margin: 0;
|
30 |
+
}
|
31 |
+
#main {
|
32 |
+
display: flex;
|
33 |
+
flex-direction: column;
|
34 |
+
margin: 50px;
|
35 |
+
margin: auto;
|
36 |
+
}
|
37 |
+
#cont {
|
38 |
+
background-color: #030303;
|
39 |
+
padding: 0px;
|
40 |
+
border-radius: 12px;
|
41 |
+
box-shadow: 8px 8px 16px #050505, -8px -8px 16px #080808;
|
42 |
+
display: flex;
|
43 |
+
align-items: center;
|
44 |
+
border: 2px solid rgb(247, 6, 187);
|
45 |
+
width: 70%;
|
46 |
+
height: 9vh;
|
47 |
+
margin: auto;
|
48 |
+
margin-top: 5%;
|
49 |
+
margin-bottom: 20px;
|
50 |
+
}
|
51 |
+
#inp {
|
52 |
+
flex-grow: 1;
|
53 |
+
padding: 10px;
|
54 |
+
margin: 10px;
|
55 |
+
background: transparent;
|
56 |
+
border: none;
|
57 |
+
border-radius: 8px;
|
58 |
+
box-shadow: linear-gradient(145deg, rgb(0, 249, 153), #ff002b);
|
59 |
+
color: #fff;
|
60 |
+
outline: none;
|
61 |
+
}
|
62 |
+
#cont button {
|
63 |
+
padding: 2.5vh 4.6vh;
|
64 |
+
margin: 1vh;
|
65 |
+
background: linear-gradient(145deg, rgb(0, 149, 249), #ff0095, rgb(255, 0, 43));
|
66 |
+
border: none;
|
67 |
+
border-radius: 8px;
|
68 |
+
color: #fff;
|
69 |
+
cursor: pointer;
|
70 |
+
}
|
71 |
+
#cont button:hover {
|
72 |
+
background: linear-gradient(145deg, #00ffab, #4e00f9, rgb(255, 0, 43));
|
73 |
+
}
|
74 |
+
#as {
|
75 |
+
display: flex;
|
76 |
+
flex-direction: row;
|
77 |
+
width: 70%;
|
78 |
+
margin: auto;
|
79 |
+
justify-content: space-between;
|
80 |
+
}
|
81 |
+
#as button {
|
82 |
+
background-color: #0a0a0a;
|
83 |
+
border: none;
|
84 |
+
padding: 3vh 4.5vh;
|
85 |
+
font-size: 15px;
|
86 |
+
color: #ffffff;
|
87 |
+
cursor: pointer;
|
88 |
+
border-radius: 12px;
|
89 |
+
transition: box-shadow 0.3s ease-in-out;
|
90 |
+
}
|
91 |
+
#model{
|
92 |
+
background-color: #181717;
|
93 |
+
border: none;
|
94 |
+
padding: 3vh 4.5vh;
|
95 |
+
font-size: 15px;
|
96 |
+
color: #ffffff;
|
97 |
+
cursor: pointer;
|
98 |
+
border-radius: 12px;
|
99 |
+
transition: box-shadow 0.3s ease-in-out;
|
100 |
+
|
101 |
+
padding: 0px 0px 0px 20px ;
|
102 |
+
}
|
103 |
+
#as button:hover {
|
104 |
+
box-shadow: 15px 15px 30px #0d0d0d, -15px -15px 30px #1a1a1a; /* Adjusted shadow and highlight on hover */
|
105 |
+
}
|
106 |
+
@media only screen and (max-width: 600px) {
|
107 |
+
#cont {
|
108 |
+
width: 90%;
|
109 |
+
margin-bottom: 20px;
|
110 |
+
}
|
111 |
+
#main{
|
112 |
+
width: 90%;
|
113 |
+
}
|
114 |
+
#cont button {
|
115 |
+
padding: 15px 15px; /* Adjust button padding for smaller screens */
|
116 |
+
}
|
117 |
+
#as{
|
118 |
+
width: 88%;
|
119 |
+
}
|
120 |
+
#as button{
|
121 |
+
|
122 |
+
padding: 15px 20px; /* Adjust button padding for smaller screens */
|
123 |
+
}
|
124 |
+
.mod{
|
125 |
+
|
126 |
+
}
|
127 |
+
}
|
128 |
+
@media only screen and (max-width: 365px){
|
129 |
+
#cont{
|
130 |
+
width: 94%;
|
131 |
+
}
|
132 |
+
#main{
|
133 |
+
width: 94%;
|
134 |
+
}
|
135 |
+
#as{
|
136 |
+
width: 94%;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
dialog{
|
140 |
+
background: rgba(29, 29, 29, 1);
|
141 |
+
border-radius: 16px;
|
142 |
+
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
|
143 |
+
margin-top: 20px;
|
144 |
+
border: 1px solid rgba(14, 13, 13, 0.3);
|
145 |
+
}
|
146 |
+
#sli{
|
147 |
+
display: flex;
|
148 |
+
flex-direction: row;
|
149 |
+
align-items: center;
|
150 |
+
color: #eeeeee;
|
151 |
+
}
|
152 |
+
label{
|
153 |
+
font-family: 'Barlow Condensed';
|
154 |
+
|
155 |
+
font-size: 21px;
|
156 |
+
margin-right: 10px;
|
157 |
+
}
|
158 |
+
#sli input{
|
159 |
+
border: 1px solid rgb(137, 9, 223);
|
160 |
+
outline: none;
|
161 |
+
border-radius: 5px;
|
162 |
+
padding: 7px 20px;
|
163 |
+
background-color: transparent ;
|
164 |
+
color: white;
|
165 |
+
font-family: 'Barlow Condensed';
|
166 |
+
}
|
167 |
+
#Apply{
|
168 |
+
background-color: rgb(0, 247, 173);
|
169 |
+
padding: 5px 10px;
|
170 |
+
border: none;
|
171 |
+
color: #000000;
|
172 |
+
font-weight:500;
|
173 |
+
font-family: Arial, Helvetica, sans-serif;
|
174 |
+
font-size: 15px;
|
175 |
+
border-radius: 4px;
|
176 |
+
}
|
177 |
+
#close{
|
178 |
+
float: right;background-color: rgb(223, 7, 79); padding: 5px 10px;
|
179 |
+
border: none;
|
180 |
+
color: #000000;
|
181 |
+
font-weight:500;
|
182 |
+
font-family: Arial, Helvetica, sans-serif;
|
183 |
+
font-size: 15px;
|
184 |
+
border-radius: 4px;
|
185 |
+
}
|
186 |
+
#styles{
|
187 |
+
display: flex;
|
188 |
+
flex-direction: row;
|
189 |
+
gap: 6px;
|
190 |
+
color: white;
|
191 |
+
font-family: 'Barlow Condensed';
|
192 |
+
font-size: 20px;
|
193 |
+
flex-wrap: wrap;
|
194 |
+
|
195 |
+
}
|
196 |
+
#imshow{
|
197 |
+
|
198 |
+
width: 100.5vh;
|
199 |
+
height: 50vh;
|
200 |
+
display: flex;
|
201 |
+
flex-direction: row;
|
202 |
+
overflow-y: hidden;
|
203 |
+
margin: auto;
|
204 |
+
gap: 6px;
|
205 |
+
margin-top: 30px;
|
206 |
+
padding-bottom: 4px;
|
207 |
+
background: linear-gradient(black, black) padding-box,
|
208 |
+
linear-gradient(to right, red, blue) border-box;
|
209 |
+
border-radius: 20px;
|
210 |
+
border: 2.5px solid transparent;
|
211 |
+
|
212 |
+
}
|
213 |
+
#imshow img{
|
214 |
+
width: 49vh;
|
215 |
+
height: 48vh;
|
216 |
+
margin: auto;
|
217 |
+
margin-top: 7px;
|
218 |
+
border-radius: 10px;
|
219 |
+
}
|
220 |
+
#imshow p{
|
221 |
+
color: white;font-family: 'Barlow Condensed'; margin: auto; font-size: 3vh;text-align: center;
|
222 |
+
}
|
223 |
+
@media screen and (min-width: 500px) and (max-width: 720px) {
|
224 |
+
dialog{
|
225 |
+
|
226 |
+
max-width: 420px;
|
227 |
+
}
|
228 |
+
#imshow{
|
229 |
+
|
230 |
+
border: 2px solid blue;
|
231 |
+
width: 400px;
|
232 |
+
height: 400px;
|
233 |
+
display: flex;
|
234 |
+
flex-direction: column;
|
235 |
+
overflow-y: scroll;
|
236 |
+
margin: auto;
|
237 |
+
background: linear-gradient(black, black) padding-box,
|
238 |
+
linear-gradient(to right, red, blue) border-box;
|
239 |
+
border-radius: 20px;
|
240 |
+
border: 2.5px solid transparent;
|
241 |
+
margin-top: 30px;
|
242 |
+
padding-bottom: 7px;
|
243 |
+
gap: 14px;
|
244 |
+
}
|
245 |
+
#imshow img{
|
246 |
+
width: 95%;
|
247 |
+
height: 100%;
|
248 |
+
margin: auto;
|
249 |
+
margin-top: 7px;
|
250 |
+
}
|
251 |
+
#cont{
|
252 |
+
height: 7vh;
|
253 |
+
}
|
254 |
+
}
|
255 |
+
#styles{
|
256 |
+
align-items: center;
|
257 |
+
justify-content: center;
|
258 |
+
}
|
259 |
+
@media screen and (max-width: 500px) {
|
260 |
+
dialog {
|
261 |
+
max-width: 300px;
|
262 |
+
}
|
263 |
+
#imshow{
|
264 |
+
|
265 |
+
border: 2px solid blue;
|
266 |
+
width: 330px;
|
267 |
+
height: 330px;
|
268 |
+
display: flex;
|
269 |
+
flex-direction: column;
|
270 |
+
overflow-y: scroll;
|
271 |
+
margin: auto;
|
272 |
+
margin-top: 30px;
|
273 |
+
padding-bottom: 7px;
|
274 |
+
gap: 14px;
|
275 |
+
background: linear-gradient(black, black) padding-box,
|
276 |
+
linear-gradient(to right, red, blue) border-box;
|
277 |
+
border-radius: 20px;
|
278 |
+
border: 2.5px solid transparent;
|
279 |
+
}
|
280 |
+
#imshow p{
|
281 |
+
width: 80%;
|
282 |
+
}
|
283 |
+
#imshow img{
|
284 |
+
width: 95%;
|
285 |
+
height: 100%;
|
286 |
+
margin: auto;
|
287 |
+
}
|
288 |
+
#imshow p{
|
289 |
+
font-size: 20px;
|
290 |
+
}
|
291 |
+
#styles{
|
292 |
+
align-items: center;
|
293 |
+
justify-content: center;
|
294 |
+
}
|
295 |
+
}
|
296 |
+
#jd{
|
297 |
+
margin: 20px;
|
298 |
+
padding: 10px;
|
299 |
+
background-color: transparent;
|
300 |
+
color: #eeeeee;
|
301 |
+
background: linear-gradient(black, black) padding-box,
|
302 |
+
linear-gradient(to right, #00ffdd, blue) border-box;
|
303 |
+
border-radius: 20px;
|
304 |
+
border: 2.5px solid transparent;
|
305 |
+
border-radius: 10px;
|
306 |
+
margin-bottom: 0px;
|
307 |
+
}
|
308 |
+
#jd:hover{
|
309 |
+
background: linear-gradient(black, black) padding-box,
|
310 |
+
linear-gradient(to right, blue,#00ffdd) border-box;
|
311 |
+
border-radius: 10px;
|
312 |
+
border: 2.5px solid transparent;
|
313 |
+
}
|
314 |
+
#ow{
|
315 |
+
float: right;
|
316 |
+
margin: 20px;
|
317 |
+
padding: 10px;
|
318 |
+
background-color: transparent;
|
319 |
+
color: #eeeeee;
|
320 |
+
background: linear-gradient(black, black) padding-box,
|
321 |
+
linear-gradient(to right, rgb(0, 255, 149), rgb(174, 0, 255)) border-box;
|
322 |
+
border-radius: 10px;
|
323 |
+
border: 2.5px solid transparent;
|
324 |
+
border-radius: 10px;
|
325 |
+
margin-bottom: 0px;
|
326 |
+
}
|
327 |
+
#ow:hover{
|
328 |
+
background: linear-gradient(black, black) padding-box,
|
329 |
+
linear-gradient(to right, rgb(174, 0, 255),rgb(0, 255, 149)) border-box;
|
330 |
+
border-radius: 10px;
|
331 |
+
border: 2.5px solid transparent;
|
332 |
+
}
|
333 |
+
#dvv{
|
334 |
+
width: 94%;
|
335 |
+
margin: auto;
|
336 |
+
}
|
337 |
+
#model{
|
338 |
+
width: 170px;
|
339 |
+
height: 50px;
|
340 |
+
overflow: visible;
|
341 |
+
}
|
342 |
+
#model option{
|
343 |
+
white-space: normal;
|
344 |
+
}
|
345 |
+
</style>
|
346 |
+
</head>
|
347 |
+
<body>
|
348 |
+
<div id="dvv">
|
349 |
+
<button id="jd">
|
350 |
+
Join discord
|
351 |
+
</button>
|
352 |
+
<!--<button id="ow">
|
353 |
+
Donate
|
354 |
+
</button>-->
|
355 |
+
</div>
|
356 |
+
<div id="main">
|
357 |
+
<div id="cont">
|
358 |
+
<input type="text" name="" id="inp" placeholder=" Enter Prompt here..">
|
359 |
+
<button id="create">Create </button>
|
360 |
+
</div>
|
361 |
+
|
362 |
+
<div id="as">
|
363 |
+
<select name="" id="model">
|
364 |
+
<option value="ar" class="mod">SDXL</option>
|
365 |
+
<option value="focus" class="mod">Fooocus (BEST)</option>
|
366 |
+
<option value="rv6" class="mod">Ptoteus v0.2</option>
|
367 |
+
<option value="ds8" class="mod">Dreamshaper xl turbo</option>
|
368 |
+
<option value="er" class="mod">pixart alpha</option>
|
369 |
+
|
370 |
+
<option value="ra" class="mod">playground v2</option>
|
371 |
+
<option value="anything" class="mod">Anything v4 (Anime)</option>
|
372 |
+
|
373 |
+
</select>
|
374 |
+
<div id="Advance Setting"><button>Setting</button></div>
|
375 |
+
</div>
|
376 |
+
|
377 |
+
</div>
|
378 |
+
|
379 |
+
|
380 |
+
|
381 |
+
|
382 |
+
|
383 |
+
<dialog id="dialog">
|
384 |
+
|
385 |
+
<p style="font-size: 23px; font-family: 'Barlow Condensed'; margin: 0px; color: rgb(197, 14, 188);">Styles: </p>
|
386 |
+
<div id="styles">
|
387 |
+
|
388 |
+
<p>Fumes AI</p>
|
389 |
+
<input type="radio" name="style" value="fumes" id="fumes">
|
390 |
+
<p>Realistic</p>
|
391 |
+
<input type="radio" name="style" value="real">
|
392 |
+
<p>Anime</p>
|
393 |
+
<input type="radio" name="style" value="anime">
|
394 |
+
<p>Photography</p>
|
395 |
+
<input type="radio" name="style" value="photo">
|
396 |
+
<p>Cinematic</p>
|
397 |
+
<input type="radio" name="style" value="cinema">
|
398 |
+
<p>Fantasy</p>
|
399 |
+
<input type="radio" name="style" value="fantasy">
|
400 |
+
<p>No Style</p>
|
401 |
+
<input type="radio" name="style" value="no">
|
402 |
+
</div>
|
403 |
+
|
404 |
+
<div id="sli">
|
405 |
+
<label for="#np" style="margin-bottom: 15px;">Negative Prompt: </label>
|
406 |
+
<input type="text" placeholder="Negative prompt" id="np" style="margin-bottom: 15px;">
|
407 |
+
</div>
|
408 |
+
<div id="sli">
|
409 |
+
<label for="#gds">Guidence Scale: </label>
|
410 |
+
<input type="range" id="gds" value="7.5" min="5" max="14" step="1"><p id="gdsp">7.5</p>
|
411 |
+
</div>
|
412 |
+
<div id="sli">
|
413 |
+
<label for="#step">Steps: </label>
|
414 |
+
<input type="range" id="step" value="50" min="30" max="100" step="1"><p id="stepp">50</p>
|
415 |
+
</div>
|
416 |
+
<div id="sli">
|
417 |
+
<label for="#gds">Seed: </label>
|
418 |
+
<input type="range" id="seed" min="0" value="0" step="1" max="99999"><p id="seedp">0</p>
|
419 |
+
</div>
|
420 |
+
|
421 |
+
<button id="close">Close</button>
|
422 |
+
</dialog>
|
423 |
+
|
424 |
+
<div id="imshow">
|
425 |
+
<p>Your Generarted Arts Will appear Here</p>
|
426 |
+
</div>
|
427 |
+
|
428 |
+
|
429 |
+
|
430 |
+
|
431 |
+
<script>
|
432 |
+
document.getElementById('jd').onclick = ()=>{
|
433 |
+
window.open('https://discord.gg/ju4yQBfQ7p')
|
434 |
+
}
|
435 |
+
/*document.getElementById('ow').onclick = ()=>{
|
436 |
+
window.open('https://www.buymeacoffee.com/mygx')
|
437 |
+
}*/
|
438 |
+
document.getElementById('fumes').checked = true
|
439 |
+
let dialog = document.getElementById('dialog')
|
440 |
+
let openbtn = document.getElementById('Advance Setting')
|
441 |
+
let closebtn = document.getElementById('close')
|
442 |
+
openbtn.onclick = ()=>{
|
443 |
+
dialog.show()
|
444 |
+
document.getElementById('imshow').style.border = '0px solid black transparent'
|
445 |
+
}
|
446 |
+
closebtn.onclick= ()=>{
|
447 |
+
dialog.close()
|
448 |
+
document.getElementById('imshow').style.background = 'linear-gradient(black, black) padding-box,linear-gradient(to right, red, blue) border-box'
|
449 |
+
}
|
450 |
+
let inp = document.getElementById('inp')
|
451 |
+
let np = document.getElementById('np')
|
452 |
+
let gd = document.getElementById('gds')
|
453 |
+
let step = document.getElementById('step')
|
454 |
+
let seed = document.getElementById('seed')
|
455 |
+
let seedp = document.getElementById('seedp')
|
456 |
+
let stepp = document.getElementById('stepp')
|
457 |
+
let gdsp = document.getElementById('gdsp')
|
458 |
+
let btn = document.getElementById('create')
|
459 |
+
gd.addEventListener('input',()=>{
|
460 |
+
gdsp.innerText = gd.value
|
461 |
+
})
|
462 |
+
step.addEventListener('input',()=>{
|
463 |
+
stepp.innerText = step.value
|
464 |
+
})
|
465 |
+
seed.addEventListener('input',()=>{
|
466 |
+
seedp.innerText = seed.value
|
467 |
+
})
|
468 |
+
let prompt = ',RAW photo,dynamic lights, photorealistic, extremely detailed informations, dynamic colors,realistic'
|
469 |
+
let nps = ' ,poorly drawn,malformed hands,malformed fingers,malformed faces,malfromed eyes,mutated fingers,malformed body parts,mutated body parts,mutated hands, disfigured,oversaturated,bad anatomy,deformed body features ,cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck,deformed eyes'
|
470 |
+
document.getElementById('styles').onchange = ()=>{
|
471 |
+
const selectedStyle = document.querySelector('input[name="style"]:checked');
|
472 |
+
if(selectedStyle.value =='photo'){
|
473 |
+
prompt = ' ,RAW photo, portrait photo,(high detailed skin:1. 2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm'
|
474 |
+
nps = ' ,deformed fingers,mutated hands,unrealistic hands,extra fingers,less fingers,mutated eyes,malformed hands,malformed fingers,malformed faces,malfromed eyes,malformed body parts,mutated body parts,mutated fingers,mutated hands,(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck'
|
475 |
+
}
|
476 |
+
if(selectedStyle.value == 'cinema'){
|
477 |
+
prompt = ' ,cinematic film still awardwinning photo, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy'
|
478 |
+
nps = ' ,deformed fingers,mutated hands,unrealistic hands,extra fingers,less fingers,mutated eyes,malformed hands,malformed fingers,malformed faces,malfromed eyes,malformed body parts,mutated body parts,mutated fingers,mutated hands,(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck'
|
479 |
+
}
|
480 |
+
if(selectedStyle.value == 'real'){
|
481 |
+
prompt = ' ,RAW candid cinema,Modern colors, 16mm, beautiful,attractive,color graded portra 400 film, remarkable color, ultra realistic, textured skin, remarkable detailed pupils, realistic dull skin noise, visible skin detail, skin fuzz, dry skin, shot with cinematic camera, sun soaked colors'
|
482 |
+
nps = ' ,deformed fingers,mutated hands,unrealistic hands,extra fingers,less fingers,mutated eyes,malformed hands,malformed fingers,malformed faces,malfromed eyes,malformed body parts,mutated body parts,mutated fingers,mutated hands,poorly drawn,lowres, disfigured,bad anatomy,deformed body features ,cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck,deformed eyes'
|
483 |
+
}
|
484 |
+
if(selectedStyle.value == 'fantasy'){
|
485 |
+
prompt = ' ,centered shot, wide angle, full body, dd, fantasy, highly detailed, digital painting, artstation, smooth, sharp focus, digital art'
|
486 |
+
nps = ' ,deformed fingers,mutated hands,unrealistic hands,extra fingers,less fingers,mutated eyes,malformed hands,malformed fingers,malformed faces,malfromed eyes,malformed body parts,mutated body parts,mutated fingers,mutated hands,missing legs, missing feet, worst quality, low quality, jpeg artifacts, signature, logo, watermark, text, realistic, hyper-realistic, ultra-detailed, RAW photo'
|
487 |
+
}
|
488 |
+
if(selectedStyle.value == 'anime'){
|
489 |
+
prompt = ' ,masterpiece,HDR,anime,anime style,beuatiful anime'
|
490 |
+
nps = ' ,malformed hands,malformed fingers,malformed faces,malformed body parts,mutated body parts,malfromed eyes,mutated fingers,mutated hands,realistic,worst quality, low quality, blurry, pixelated, extra limb, extra fingers, bad hand, text, name, letters, out of frame, lowres, text, error, cropped, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username, watermark, signature'
|
491 |
+
}
|
492 |
+
if(selectedStyle.value == 'fumes'){
|
493 |
+
let prompt = ' ,RAW photo,dynamic lights, photorealistic, extremely detailed informations, dynamic colors,realistic,SciFi,award winning photography,film grain,beautiful,attarctive'
|
494 |
+
let nps = ' ,deformed fingers,mutated hands,unrealistic hands,extra fingers,less fingers,mutated eyes,poorly drawn,malformed hands,malformed fingers,malformed faces,malformed body parts,mutated body parts,malfromed eyes,mutated fingers,mutated hands, disfigured,oversaturated,bad anatomy,deformed body features ,cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck,deformed eyes'
|
495 |
+
}
|
496 |
+
if(selectedStyle.value == 'no'){
|
497 |
+
prompt = ''
|
498 |
+
nps = ''
|
499 |
+
}
|
500 |
+
}
|
501 |
+
|
502 |
+
btn.onclick = async ()=>{
|
503 |
+
let url2 = 'https://api-cmgn.onrender.com/get_prediction'
|
504 |
+
let idlist = []
|
505 |
+
url = 'https://flask-hello-world-murex-sigma.vercel.app/predict'
|
506 |
+
var selectElement = document.getElementById("model");
|
507 |
+
var selectedIndex = selectElement.selectedIndex;
|
508 |
+
if (selectedIndex === -1) {
|
509 |
+
console.log("No option is selected.");
|
510 |
+
} else {
|
511 |
+
var selectedOption = selectElement.options[selectedIndex];
|
512 |
+
|
513 |
+
if(selectedOption.value == 'rv6'){
|
514 |
+
url = 'https://flask-hello-world-murex-sigma.vercel.app/proteus'
|
515 |
+
|
516 |
+
}
|
517 |
+
if(selectedOption.value == 'ds8'){
|
518 |
+
url = 'https://flask-hello-world-murex-sigma.vercel.app/dream'
|
519 |
+
if(step.value>50){
|
520 |
+
step.value = 50
|
521 |
+
}
|
522 |
+
|
523 |
+
}
|
524 |
+
if(selectedOption.value == 'ra'){
|
525 |
+
url = 'https://flask-hello-world-murex-sigma.vercel.app/playground'
|
526 |
+
|
527 |
+
}
|
528 |
+
if(selectedOption.value == 'ar'){
|
529 |
+
url = 'https://flask-hello-world-murex-sigma.vercel.app/predict'
|
530 |
+
|
531 |
+
}
|
532 |
+
if(selectedOption.value == 'er'){
|
533 |
+
url = 'https://flask-hello-world-murex-sigma.vercel.app/pixart'
|
534 |
+
|
535 |
+
}
|
536 |
+
if(selectedOption.value == 'anything'){
|
537 |
+
url = 'https://flask-hello-world-murex-sigma.vercel.app/anything'
|
538 |
+
|
539 |
+
}
|
540 |
+
if(selectedOption.value == 'focus'){
|
541 |
+
url = 'https://flask-hello-world-murex-sigma.vercel.app/focus'
|
542 |
+
url2 = 'https://api-cmgn.onrender.com/foocus'
|
543 |
+
}
|
544 |
+
}
|
545 |
+
negative_prompt = nps
|
546 |
+
btn.disabled = true
|
547 |
+
const div = document.getElementById('imshow');
|
548 |
+
div.innerHTML = '';
|
549 |
+
document.getElementById('imshow').innerHTML = ''
|
550 |
+
let pi = document.createElement('p')
|
551 |
+
pi.innerText = 'Generating Image... generation Usually Complete Within 15 seconds'
|
552 |
+
document.getElementById('imshow').append(pi)
|
553 |
+
let count = 0;
|
554 |
+
seed = seed
|
555 |
+
async function generate(){
|
556 |
+
|
557 |
+
const params = {
|
558 |
+
'prompt': inp.value+prompt,
|
559 |
+
'negative_prompt': np.value+nps,
|
560 |
+
"steps": step.value,
|
561 |
+
'gd': gd.value
|
562 |
+
};
|
563 |
+
|
564 |
+
try {
|
565 |
+
const response = await fetch(url, {
|
566 |
+
method: 'POST',
|
567 |
+
headers: {
|
568 |
+
'Content-Type': 'application/json',
|
569 |
+
'Connection': 'keep-alive',
|
570 |
+
},
|
571 |
+
body: JSON.stringify(params)
|
572 |
+
});
|
573 |
+
/* console.log(np.value)
|
574 |
+
const imgData = await response.text();
|
575 |
+
const div = document.getElementById('imshow')
|
576 |
+
const img = document.createElement('img');
|
577 |
+
pi.innerHTML = ''
|
578 |
+
pi.innerText = ''
|
579 |
+
img.src = imgData;
|
580 |
+
div.appendChild(img);
|
581 |
+
*/
|
582 |
+
|
583 |
+
const imgData = await response.text();
|
584 |
+
idlist.push(imgData)
|
585 |
+
|
586 |
+
|
587 |
+
} catch (error) {
|
588 |
+
btn.disabled = false
|
589 |
+
console.error('An error occurred:', error);
|
590 |
+
pi.innerText = 'An error occurred, try changing your prompt';
|
591 |
+
}
|
592 |
+
}
|
593 |
+
|
594 |
+
await Promise.all([generate(), generate()]);
|
595 |
+
|
596 |
+
function final2(){
|
597 |
+
const id = idlist[1].trim().replace(/^"|"$/g, '');
|
598 |
+
fetch(url2, {
|
599 |
+
method: 'POST',
|
600 |
+
headers: {
|
601 |
+
'Content-Type': 'application/json',
|
602 |
+
},
|
603 |
+
body: JSON.stringify({
|
604 |
+
id: id,
|
605 |
+
}),
|
606 |
+
})
|
607 |
+
.then((response) => response.text())
|
608 |
+
.then((data) => {
|
609 |
+
const img = document.createElement('img');
|
610 |
+
pi.innerHTML = ''
|
611 |
+
pi.innerText = ''
|
612 |
+
img.src = data.trim().replace(/^"|"$/g, '');
|
613 |
+
div.appendChild(img);
|
614 |
+
btn.disabled = false
|
615 |
+
console.log(data)
|
616 |
+
})
|
617 |
+
.catch((error) =>{
|
618 |
+
btn.disabled = false
|
619 |
+
console.error('An error occurred:', error);
|
620 |
+
pi.innerText = 'An error occurred, try changing your prompt';
|
621 |
+
});
|
622 |
+
}
|
623 |
+
function final1(){
|
624 |
+
const id = idlist[0].trim().replace(/^"|"$/g, '');
|
625 |
+
fetch(url2, {
|
626 |
+
method: 'POST',
|
627 |
+
headers: {
|
628 |
+
'Content-Type': 'application/json',
|
629 |
+
},
|
630 |
+
body: JSON.stringify({
|
631 |
+
id: id,
|
632 |
+
}),
|
633 |
+
})
|
634 |
+
.then((response) => response.text())
|
635 |
+
.then((data) => {
|
636 |
+
const img = document.createElement('img');
|
637 |
+
pi.innerHTML = ''
|
638 |
+
pi.innerText = ''
|
639 |
+
img.src = data.trim().replace(/^"|"$/g, '');
|
640 |
+
div.appendChild(img);
|
641 |
+
btn.disabled = false
|
642 |
+
console.log(data)
|
643 |
+
})
|
644 |
+
.catch((error) => {
|
645 |
+
btn.disabled = false
|
646 |
+
console.error('An error occurred:', error);
|
647 |
+
pi.innerText = 'An error occurred, try changing your prompt';
|
648 |
+
});
|
649 |
+
}
|
650 |
+
|
651 |
+
final2()
|
652 |
+
final1()
|
653 |
+
|
654 |
+
|
655 |
+
|
656 |
+
}
|
657 |
+
</script>
|
658 |
+
|
659 |
+
|
660 |
+
|
661 |
+
</body>
|
662 |
</html>
|