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