File size: 12,587 Bytes
b22c3ed
 
 
be6a2e6
b22c3ed
 
 
 
fb13986
7423a30
 
b22c3ed
 
 
 
 
 
1c22ffb
b22c3ed
1c22ffb
b22c3ed
23bf166
 
 
 
b22c3ed
 
 
fb13986
b22c3ed
 
 
 
 
 
 
fb13986
b22c3ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fb13986
 
b22c3ed
 
 
 
 
1c22ffb
fb13986
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8c25b3c
1c22ffb
 
 
 
 
 
 
a718485
1c22ffb
 
 
 
 
 
 
 
 
 
 
 
 
 
06c0fa4
 
6ad04d4
1c22ffb
 
 
 
 
 
 
06c0fa4
1c22ffb
 
 
 
 
 
 
 
06c0fa4
1c22ffb
a718485
 
 
d556b89
1c22ffb
d556b89
df2588a
 
d556b89
2e9d744
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b22c3ed
1c22ffb
b22c3ed
 
0a590ad
b22c3ed
0a590ad
b22c3ed
d556b89
b22c3ed
1e4fe3e
 
91b2cb6
b22c3ed
d556b89
1c22ffb
f01d7dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b22c3ed
 
 
 
 
f01d7dc
 
 
 
 
 
 
 
 
b22c3ed
d5ec8cb
 
 
 
 
 
 
 
 
 
 
 
a718485
b22c3ed
1c22ffb
06c0fa4
1c22ffb
 
 
06c0fa4
fb13986
 
 
 
 
 
 
 
 
 
 
 
 
 
b22c3ed
d556b89
 
2e9d744
ff794e8
2e9d744
d556b89
 
1c22ffb
 
 
 
6ad04d4
1c22ffb
 
 
25a2d62
1c22ffb
2e9d744
be03cf2
2e9d744
 
 
 
 
 
 
 
1c22ffb
6ad04d4
b22c3ed
 
be6a2e6
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<!DOCTYPE html>
<html>
<head>
    <title>Free AI Image Generator</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
    <style>
        body {
            background-color: #000000;
            color: #ffffff;
            font-family: Arial, sans-serif;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 40px;
            background-color: transparent;
            border-radius: 10px;
            box-shadow: none;
        }
      img {
         display: block;
         margin: 0 auto;
      }
        h1 {
            text-align: center;
            margin-bottom: 30px;
            color: #ffffff;
            font-weight: 600;
            letter-spacing: 1px;
        }

        label {
            font-weight: bold;
            margin-bottom: 10px;
            color: #ffffff;
        }

        textarea,
        select {
            width: 100%;
            padding: 12px;
            border-radius: 5px;
            border: 1px solid #dddddd;
            font-size: 16px;
            margin-bottom: 20px;
            color: #555555;
            background-color: #f9f9f9;
        }

        button[type="submit"] {
            background-color: #ff3366;
            color: #ffffff;
            padding: 12px 24px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
            display: block;
            margin: 0 auto;
        }

        button[type="submit"]:hover {
            background-color: #cc0052;
        }

        .social-buttons {
            text-align: center;
            margin-top: 20px;
        }

        .social-button {
            display: inline-block;
            margin-right: 10px;
        }

        .social-icon {
            color: #ffffff;
            font-size: 24px;
            transition: color 0.3s ease;
        }

        .social-icon:hover {
            color: #ff3366;
        }

        .generating-message {
            text-align: center;
            margin-bottom: 20px;
            color: #ffffff;
            display: none;
            font-size: 24px;
            animation: pulse 1s ease-in-out infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 0.7;
            }
            50% {
                transform: scale(1.2);
                opacity: 1;
            }
            100% {
                transform: scale(1);
                opacity: 0.7;
            }
        }

        .loading-spinner {
            display: inline-block;
            width: 40px;
            height: 40px;
            border: 4px solid #ffffff;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        .disabled-button {
            cursor: not-allowed;
            opacity: 0.6;
        }

        footer {
            padding: 20px;
            text-align: center;
        }
      /* Add styles for the page view counter and API page link */
        .page-view-counter {
            font-size: 14px;
            color: #ffffff;
            margin-top: 10px;
        }
        .api-link {
            font-size: 14px;
            color: #ffffff;
            margin-top: 5px;
            text-decoration: none;
        }
        .api-link:hover {
            color: #ff3366;
      }
    </style>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
<body>
  
    <div class="container">
      <img src="https://imseldrith-imagine.hf.space/static/imagine_logo.gif">
        <h1 class="mt-5">Image Generator</h1>
        <form action="/generate" method="POST" onsubmit="showGeneratingMessage()">
            <div class="mb-3">
    <label for="prompt" class="form-label">Prompt:</label>
    <textarea id="prompt" name="prompt" class="form-control" rows="4" cols="50" placeholder="Surprise me" required></textarea>
            </div>
            <div class="mb-3">
                <label for="style" class="form-label">Choose Style:</label>
                <select id="style" name="style" class="form-select">
                     <option value="NO_STYLE">No style</option>
  <option value="EUPHORIC">Euphoric</option>
  <option value="FANTASY">Fantasy</option>
  <option value="CYBERPUNK">Cyberpunk</option>
  <option value="STUDIO_GHIBLI">Studio Ghibli</option>
  <option value="DISNEY">Disney</option>
  <option value="GTA">GTA</option>
  <option value="KAWAII_CHIBI">Kawaii Chibi</option>
  <option value="ANIME_V2">Anime V2</option>
  <option value="ABSTRACT_VIBRANT">Abstract Vibrant</option>
  <option value="VIBRANT">Vibrant</option>
  <option value="PSYCHEDELIC">Psychedelic</option>
  <option value="EXTRA_TERRESTRIAL">Extra-terrestrial</option>
  <option value="COSMIC">Cosmic</option>
  <option value="MACRO_PHOTOGRAPHY">Macro Photography</option>
  <option value="PRODUCT_PHOTOGRAPHY">Product Photography</option>
  <option value="POLAROID">Polaroid</option>
  <option value="NEO_FAUVISM">Neo fauvism</option>
  <option value="POP_ART">Pop Art</option>
  <option value="POP_ART_II">Pop Art II</option>
  <option value="GRAFFITI">Graffiti</option>
  <option value="SURREALISM">Surrealism</option>
  <option value="BAUHAUS">Bauhaus</option>
  <option value="CUBISM">Cubism</option>
  <option value="JAPANESE_ART">Japanese Art</option>
  <option value="SKETCH">Sketch</option>
  <option value="ILLUSTRATION">Illustration</option>
  <option value="PAINTING">Painting</option>
  <option value="PALETTE_KNIFE">Palette Knife</option>
  <option value="INK">Ink</option>
  <option value="ORIGAMI">Origami</option>
  <option value="STAINED_GLASS">Stained Glass</option>
  <option value="STICKER">Sticker</option>
  <option value="CLIP_ART">Clip Art</option>
  <option value="POSTER_ART">Poster Art</option>
  <option value="PAPERCUT_STYLE">PaperCut Style</option>
  <option value="COLORING_BOOK">Coloring Book</option>
  <option value="PATTERN">Pattern</option>
  <option value="RENDER">Render</option>
  <option value="CINEMATIC_RENDER">Cinematic Render</option>
  <option value="COMIC_BOOK">Comic Book</option>
  <option value="COMIC_V2">Comic V2</option>
  <option value="LOGO">Logo</option>
  <option value="ICON">Icon</option>
  <option value="GLASS_ART">Glass Art</option>
  <option value="KNOLLING_CASE">Knolling Case</option>
<option value="SCATTER">Scatter</option>
<option value="POLY_ART">Poly Art</option>
<option value="CLAYMATION">Claymation</option>
<option value="WOOLITIZE">Woolitize</option>
<option value="MARBLE">Marble</option>
<option value="VAN_GOGH">Van Gogh</option>
<option value="SALVADOR_DALI">Salvador Dali</option>
<option value="PICASSO">Picasso</option>
<option value="ARCHITECTURE">Architecture</option>
<option value="INTERIOR">Interior</option>
<option value="ABSTRACT_CITYSCAPE">Abstract Cityscape</option>
<option value="DYSTOPIAN">Dystopian</option>
<option value="FUTURISTIC">Futuristic</option>
<option value="NEON">Neon</option>
<option value="CHROMATIC">Chromatic</option>
<option value="MYSTICAL">Mystical</option>
<option value="LANDSCAPE">Landscape</option>
<option value="RAINBOW">Rainbow</option>
<option value="CANDYLAND">Candyland</option>
<option value="MINECRAFT">Minecraft</option>
<option value="PIXEL_ART">Pixel Art</option>
<option value="RENAISSANCE">Rennaisance</option>
<option value="ROCOCCO">Rococco</option>
<option value="MEDIEVAL">Medieval</option>
<option value="RETRO">Retro</option>
<option value="RETROWAVE">Retrowave</option>
<option value="STEAMPUNK">Steampunk</option>
<option value="AMAZONIAN">Amazonian</option>
<option value="AVATAR">Avatar</option>
<option value="GOTHIC">Gothic</option>
<option value="HAUNTED">Haunted</option>
<option value="WATERBENDER">Waterbender</option>
<option value="AQUATIC">Aquatic</option>
<option value="FIREBENDER">Firebender</option>
<option value="FORESTPUNK">Forestpunk</option>
<option value="VIBRANT_VIKING">Vibrant Viking</option>
<option value="SAMURAI">Samurai</option>
<option value="ELVEN">Elven</option>
<option value="SHAMROCK_FANTASY">Shamrock Fantasy</option>
<option value="EARTHBENDER">Earthbender</option>
<option value="AIRBENDER">Airbender</option>
<option value="METALBENDER">Metalbender</option>
<option value="BLOODBENDER">Bloodbender</option>
<option value="LIGHTNINGBENDER">Lightbender</option>
<option value="SPIRITBENDER">Spiritbender</option>
<option value="LAVABENDER">Lavabender</option>
<option value="WATERHEALER">Waterhealer</option>
</select>
            </div>
            <div class="mb-3">
                <label for="ratio" class="form-label">Choose Ratio:</label>
                <select id="ratio" name="ratio" class="form-select">
                    <option value="RATIO_1X1">1:1</option>
        <option value="RATIO_4X3">4:3</option>
        <option value="RATIO_3X2">3:2</option>
        <option value="RATIO_2X3">2:3</option>
        <option value="RATIO_16X9">16:9</option>
        <option value="RATIO_9X16">9:16</option>
        <option value="RATIO_5X4">5:4</option>
        <option value="RATIO_4X5">4:5</option>
        <option value="RATIO_3X1">3:1</option>
        <option value="RATIO_3X4">3:4</option>                </select>
            </div>
          <div class="mb-3">
            <label for="model" class="form-label">Choose Model:</label>
        <select name="model" id="model" class="form-select">
            <option value="REALISTIC">Realistic</option>
            <option value="CREATIVE">CREATIVE</option>
            <option value="V4_BETA">V4_BETA</option>
            <option value="V3">V3</option>
            <option value="V1">V1</option>
            <option value="ANIME">ANIME</option>
            <option value="PORTRAIT">Portrait</option>
        </select>
          </div>
            <button type="submit" class="btn btn-primary" id="generate-button">Generate Image</button>
        </form>

        <div class="generating-message">
            <span class="loading-spinner"></span>
            Generating image... Please wait
        </div>

        <div class="social-buttons">
            <span class="social-button">
                <a href="https://www.facebook.com/octaeldrith" class="social-icon"><i class="fab fa-facebook-f"></i></a>
            </span>
            <span class="social-button">
                <a href="https://twitter.com/ims_eldrith" class="social-icon"><i class="fab fa-twitter"></i></a>
            </span>
            <span class="social-button">
                <a href="https://instagram.com/ims_eldrith" class="social-icon"><i class="fab fa-instagram"></i></a>
            </span>
            <span class="social-button">
                <a href="https://www.linkedin.com/in/ashiq-hussain" class="social-icon"><i class="fab fa-linkedin"></i></a>
            </span>
        </div>
    </div>
    <footer>
        <p>Built with ❤️ by <a href="https://codegenius.me" style="color: red;">Ashiq Hussain Mir</a></p>
      <p class="page-view-counter">
    Page Views: <span id="page-view-count">67</span> | <a href="{{url_for('api_docs')}}" class="api-link">API</a>
</p>
    </footer>
    <script>
        function showGeneratingMessage() {
            var generatingMessage = document.querySelector('.generating-message');
            generatingMessage.style.display = 'block';
            document.getElementById('generate-button').classList.add('disabled-button');

            setTimeout(function () {
                generatingMessage.style.display = 'none';
                document.getElementById('generate-button').classList.remove('disabled-button');
            }, 7000);
        }
      // Update the page view counter
        var pageViewCount = 67;
        function updatePageViewCount() {
            pageViewCount++;
            document.getElementById('page-view-count').textContent = pageViewCount;
        }

        // Call the updatePageViewCount function when the page loads
        window.addEventListener('load', updatePageViewCount);
      
    </script>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>