File size: 8,685 Bytes
d86df15
 
 
 
 
12cca7f
d86df15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12cca7f
d86df15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Artwave Ai Image Creator XL Demo</title>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.min.js"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
  <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=Poppins:wght@400;600&display=swap" rel="stylesheet">
  <style>
    body {
      background-color: #f0f0f0;
      color: #333;
      font-family: 'Poppins', sans-serif;
      width: 100%;
      overflow-x: hidden;
    }
    html, body {
      overflow-x: hidden;
    }

    .form-control,
    .form-select {
      background-color: #ffffff;
      color: #333;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    .form-control::placeholder {
      color: #888;
    }
    .form-control:focus,
    .form-select:focus {
      outline: none;
      border-color: #333;
    }

    .btn-primary {
      background-color: #007bff;
      border: none;
      font-size: 1.2em;
      padding: 10px 20px;
      transition: background-color 0.3s ease;
    }
    .btn-primary:hover {
      background-color: #0056b3;
    }
    .btn-primary:focus {
      box-shadow: none;
    }

    #prompt {
      background-color: #ffffff;
      outline: 4px solid #ffffff;
    }

    #negative-prompt {
      background-color: #f9f9f9;
      border: 1px solid #e0e0e0;
      border-radius: 10px;
      outline: 3px solid #e0e0e0;
    }

    #modelLabel,
    #ratioLabel,
    #styleLabel {
      background-color: #007bff;
      color: white;
      border: none;
      padding: 6px 12px;
      border-radius: 4px;
    }

    .form-range {
      background-color: #ffffff;
      border: 1px solid #ccc;
    }

    .form-range::-webkit-slider-thumb {
      background-color: #007bff;
    }
    .form-range::-moz-range-thumb {
      background-color: #007bff;
    }
    .form-range::-ms-thumb {
      background-color: #007bff;
    }

    .input-group-div1,
    .input-group-div {
      background-color: #ffffff;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 8px;
      transition: border-color 0.3s ease;
    }

    .input-group-div1:hover,
    .input-group-div:hover {
      border-color: #007bff;
    }

    .col-12 p {
      color: #007bff;
      font-size: 1.5em;
      font-weight: 600;
      margin-bottom: 0;
      animation: colorChange 10s infinite;
    }

    #imshow {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      align-items: center;
      padding: 20px;
      background-color: #ffffff;
      border: 1px solid #ccc;
      border-radius: 8px;
      margin-top: 20px;
      width: 100%;
    }

    #imshow img {
      max-width: 280px;
      margin: 0;
      padding: 0;
      border-radius: 8px;
      transition: transform 0.3s ease;
    }

    .floating-button {
            position: fixed;
            bottom: 30px;
            left: 20px;
            background-color: #dbdad7;
            color: black;
            padding: 15px 25px;
            border: none;
            border-radius: 10px;
            font-size: 13px;
            font-weight: bold;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: background-color 0.3s, box-shadow 0.3s;
            text-decoration: none;
            font-family: 'Poppins', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .floating-button:hover {
            background-color: #dbdad7;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }
        .floating-button i {
            margin-right: 10px;
      }
    
    @media screen and (max-width: 600px) {
      #imshow {
        justify-content: center;
        align-items: center;
      }
      #imshow img {
        max-width: 280px;
      }
    }

    #stats {
      color: red;
    }
  </style>
</head>
<body>
  <pre id="stats"></pre>
  <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">Model</label>
          <select class="form-select" id="model" aria-label="Model Select">
            <option value="rvs4">Artwave XL F1</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">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" id="styleLabel">Style</label>
          <select class="form-select" id="style" aria-label="Style Select">
            
            <option value="Cinematic">Cinematic</option>
            <option value="Photography">Photography</option>
            <option value="Anime">Anime</option>
            <option value="Comics">Comics</option>
            <option value="Creative">Fantasy</option>
            <option value="Cartoon">Cartoon</option>
            <option value="3d">3D Cartoon</option>
            <option value="No">No Styles</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">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">Guidance: <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" step="0.1">
        </div>
      </div>
      <div class="col-12 text-center mt-4">
        <button type="button" class="btn btn-primary w-90" id="btn">Generate Image (2 Images)</button>
      </div>
    </div>
    <div class="container mt-4" id="cont4">
      <div id="imshow"></div>
    </div>
  </div>
<br>
  <a href="https://discord.com/invite/qq27GRjZ" class="floating-button" target="_blank">
    <i class="fab fa-discord"></i>Discord
  </a>
  
  <br>
  <script>
    document.getElementById('prompt').addEventListener('mouseover', () => {
      document.getElementById('prompt').placeholder = 'A Cat Wearing Purple Hoodie';
    });
    document.getElementById('prompt').addEventListener('mouseout', () => {
      document.getElementById('prompt').placeholder = 'Enter Your Prompt';
    });
    document.getElementById('prompt').addEventListener('input', function() {
      this.style.color = '#333';
    });
    document.getElementById('negative-prompt').addEventListener('input', function() {
      this.style.color = '#007bff';
    });
  </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>