Spaces:
Running
Running
undefined - Initial Deployment
Browse files- README.md +6 -4
- index.html +664 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: purple
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: image-generator
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: pink
|
| 5 |
colorTo: purple
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,664 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
<title>Realistic Image Generators Unlimited | Create AI Art</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
/* Custom CSS for animations and effects */
|
| 11 |
+
.gradient-text {
|
| 12 |
+
background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
|
| 13 |
+
-webkit-background-clip: text;
|
| 14 |
+
background-clip: text;
|
| 15 |
+
color: transparent;
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
.card-hover {
|
| 19 |
+
transition: all 0.3s ease;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.card-hover:hover {
|
| 23 |
+
transform: translateY(-5px);
|
| 24 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
.skeleton-loader {
|
| 28 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
@keyframes pulse {
|
| 32 |
+
0%, 100% {
|
| 33 |
+
opacity: 0.4;
|
| 34 |
+
}
|
| 35 |
+
50% {
|
| 36 |
+
opacity: 0.2;
|
| 37 |
+
}
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.file-upload:hover svg {
|
| 41 |
+
transform: scale(1.1);
|
| 42 |
+
transition: transform 0.3s ease;
|
| 43 |
+
}
|
| 44 |
+
</style>
|
| 45 |
+
</head>
|
| 46 |
+
<body class="bg-gray-50 font-sans antialiased">
|
| 47 |
+
<!-- Navigation -->
|
| 48 |
+
<nav class="bg-white shadow-sm">
|
| 49 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 50 |
+
<div class="flex justify-between h-16">
|
| 51 |
+
<div class="flex items-center">
|
| 52 |
+
<div class="flex-shrink-0 flex items-center">
|
| 53 |
+
<span class="text-indigo-600 text-2xl font-bold">RIGU</span>
|
| 54 |
+
</div>
|
| 55 |
+
</div>
|
| 56 |
+
<div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
|
| 57 |
+
<a href="#" class="text-gray-900 inline-flex items-center px-1 pt-1 text-sm font-medium">Home</a>
|
| 58 |
+
<a href="#" class="text-gray-500 hover:text-gray-900 inline-flex items-center px-1 pt-1 text-sm font-medium">Gallery</a>
|
| 59 |
+
<a href="#" class="text-gray-500 hover:text-gray-900 inline-flex items-center px-1 pt-1 text-sm font-medium">Features</a>
|
| 60 |
+
<a href="#" class="text-gray-500 hover:text-gray-900 inline-flex items-center px-1 pt-1 text-sm font-medium">Pricing</a>
|
| 61 |
+
</div>
|
| 62 |
+
<div class="flex items-center">
|
| 63 |
+
<button class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-md text-sm font-medium transition duration-300">
|
| 64 |
+
Generate Now
|
| 65 |
+
</button>
|
| 66 |
+
</div>
|
| 67 |
+
</div>
|
| 68 |
+
</div>
|
| 69 |
+
</nav>
|
| 70 |
+
|
| 71 |
+
<!-- Hero Section -->
|
| 72 |
+
<section class="relative bg-white overflow-hidden">
|
| 73 |
+
<div class="max-w-7xl mx-auto">
|
| 74 |
+
<div class="relative z-10 pb-8 bg-white sm:pb-16 md:pb-20 lg:max-w-2xl lg:w-full lg:pb-28 xl:pb-32">
|
| 75 |
+
<main class="mt-10 mx-auto max-w-7xl px-4 sm:mt-12 sm:px-6 md:mt-16 lg:mt-20 lg:px-8 xl:mt-28">
|
| 76 |
+
<div class="sm:text-center lg:text-left">
|
| 77 |
+
<h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:text-6xl">
|
| 78 |
+
<span class="block">Create Unlimited</span>
|
| 79 |
+
<span class="block gradient-text">Realistic Images</span>
|
| 80 |
+
</h1>
|
| 81 |
+
<p class="mt-3 text-base text-gray-500 sm:mt-5 sm:text-lg sm:max-w-xl sm:mx-auto md:mt-5 md:text-xl lg:mx-0">
|
| 82 |
+
The most advanced AI-powered image generator. Create stunning, photorealistic images with a simple prompt.
|
| 83 |
+
No limits, no watermarks, full commercial rights.
|
| 84 |
+
</p>
|
| 85 |
+
<div class="mt-5 sm:mt-8 sm:flex sm:justify-center lg:justify-start">
|
| 86 |
+
<div class="rounded-md shadow">
|
| 87 |
+
<a href="#" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 md:py-4 md:text-lg md:px-10 transition duration-300">
|
| 88 |
+
Start Generating Free
|
| 89 |
+
</a>
|
| 90 |
+
</div>
|
| 91 |
+
<div class="mt-3 sm:mt-0 sm:ml-3">
|
| 92 |
+
<a href="#" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-indigo-700 bg-indigo-100 hover:bg-indigo-200 md:py-4 md:text-lg md:px-10 transition duration-300">
|
| 93 |
+
See Gallery
|
| 94 |
+
</a>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
</main>
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
<div class="lg:absolute lg:inset-y-0 lg:right-0 lg:w-1/2">
|
| 102 |
+
<img class="h-56 w-full object-cover sm:h-72 md:h-96 lg:w-full lg:h-full" src="https://images.unsplash.com/photo-1635070041078-e363dbe005cb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80" alt="">
|
| 103 |
+
</div>
|
| 104 |
+
</section>
|
| 105 |
+
|
| 106 |
+
<!-- Generation Section -->
|
| 107 |
+
<section class="py-12 bg-gray-50">
|
| 108 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 109 |
+
<div class="text-center">
|
| 110 |
+
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
|
| 111 |
+
<span class="gradient-text">Unlimited</span> Possibilities
|
| 112 |
+
</h2>
|
| 113 |
+
<p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto">
|
| 114 |
+
Input any text prompt and watch as our AI creates stunning, realistic images in seconds.
|
| 115 |
+
</p>
|
| 116 |
+
</div>
|
| 117 |
+
|
| 118 |
+
<div class="mt-10" id="generator-section">
|
| 119 |
+
<div class="bg-white shadow rounded-lg overflow-hidden">
|
| 120 |
+
<div class="px-4 py-5 sm:p-6">
|
| 121 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 122 |
+
<div class="md:col-span-2">
|
| 123 |
+
<label for="prompt" class="block text-sm font-medium text-gray-700">Describe what you want to generate</label>
|
| 124 |
+
<div class="mt-1">
|
| 125 |
+
<textarea id="prompt" name="prompt" rows="4" class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md" placeholder="e.g., 'A golden retriever puppy playing in a sunny meadow with colorful butterflies'"></textarea>
|
| 126 |
+
</div>
|
| 127 |
+
|
| 128 |
+
<div class="mt-4 grid grid-cols-2 gap-4">
|
| 129 |
+
<div>
|
| 130 |
+
<label for="style" class="block text-sm font-medium text-gray-700">Style</label>
|
| 131 |
+
<select id="style" name="style" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md">
|
| 132 |
+
<option>Photo Realistic</option>
|
| 133 |
+
<option>Digital Art</option>
|
| 134 |
+
<option>Oil Painting</option>
|
| 135 |
+
<option>Watercolor</option>
|
| 136 |
+
<option>Anime</option>
|
| 137 |
+
</select>
|
| 138 |
+
</div>
|
| 139 |
+
<div>
|
| 140 |
+
<label for="aspect" class="block text-sm font-medium text-gray-700">Aspect Ratio</label>
|
| 141 |
+
<select id="aspect" name="aspect" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md">
|
| 142 |
+
<option>1:1 (Square)</option>
|
| 143 |
+
<option>4:3 (Standard)</option>
|
| 144 |
+
<option>16:9 (Widescreen)</option>
|
| 145 |
+
<option>9:16 (Portrait)</option>
|
| 146 |
+
</select>
|
| 147 |
+
</div>
|
| 148 |
+
</div>
|
| 149 |
+
|
| 150 |
+
<div class="mt-6">
|
| 151 |
+
<label class="block text-sm font-medium text-gray-700">Advanced Options</label>
|
| 152 |
+
<div class="mt-2 space-y-4">
|
| 153 |
+
<div class="flex items-center">
|
| 154 |
+
<input id="high-detail" name="high-detail" type="checkbox" class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded">
|
| 155 |
+
<label for="high-detail" class="ml-2 block text-sm text-gray-700">Ultra High Detail</label>
|
| 156 |
+
</div>
|
| 157 |
+
<div class="flex items-center">
|
| 158 |
+
<input id="human-likeness" name="human-likeness" type="checkbox" checked class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded">
|
| 159 |
+
<label for="human-likeness" class="ml-2 block text-sm text-gray-700">Photorealistic Human Likeness (Beta)</label>
|
| 160 |
+
</div>
|
| 161 |
+
<div class="flex items-center">
|
| 162 |
+
<input id="nsfw" name="nsfw" type="checkbox" class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded">
|
| 163 |
+
<label for="nsfw" class="ml-2 block text-sm text-gray-700">Allow Sensitive Content</label>
|
| 164 |
+
</div>
|
| 165 |
+
</div>
|
| 166 |
+
</div>
|
| 167 |
+
</div>
|
| 168 |
+
|
| 169 |
+
<div class="flex flex-col">
|
| 170 |
+
<label class="block text-sm font-medium text-gray-700">Upload Reference Image (Optional)</label>
|
| 171 |
+
<div class="mt-1 flex-1 flex items-center justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md file-upload">
|
| 172 |
+
<div class="space-y-1 text-center">
|
| 173 |
+
<svg class="mx-auto h-12 w-12 text-gray-400" stroke="currentColor" fill="none" viewBox="0 0 48 48" aria-hidden="true">
|
| 174 |
+
<path d="M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
| 175 |
+
</svg>
|
| 176 |
+
<div class="flex text-sm text-gray-600">
|
| 177 |
+
<label for="file-upload" class="relative cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500">
|
| 178 |
+
<span>Upload a file</span>
|
| 179 |
+
<input id="file-upload" name="file-upload" type="file" class="sr-only">
|
| 180 |
+
</label>
|
| 181 |
+
<p class="pl-1">or drag and drop</p>
|
| 182 |
+
</div>
|
| 183 |
+
<p class="text-xs text-gray-500">PNG, JPG, GIF up to 10MB</p>
|
| 184 |
+
</div>
|
| 185 |
+
</div>
|
| 186 |
+
|
| 187 |
+
<button id="generate-btn" class="mt-6 w-full bg-indigo-600 border border-transparent rounded-md py-3 px-4 flex items-center justify-center text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition duration-300">
|
| 188 |
+
<i class="fas fa-magic mr-2"></i> Generate Image
|
| 189 |
+
</button>
|
| 190 |
+
|
| 191 |
+
<div class="mt-4 flex items-start">
|
| 192 |
+
<div class="flex items-center h-5">
|
| 193 |
+
<input id="private-generation" name="private-generation" type="checkbox" class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded">
|
| 194 |
+
</div>
|
| 195 |
+
<div class="ml-3 text-sm">
|
| 196 |
+
<label for="private-generation" class="font-medium text-gray-700">Private generation (doesn't appear in public gallery)</label>
|
| 197 |
+
</div>
|
| 198 |
+
</div>
|
| 199 |
+
</div>
|
| 200 |
+
</div>
|
| 201 |
+
</div>
|
| 202 |
+
</div>
|
| 203 |
+
</div>
|
| 204 |
+
</div>
|
| 205 |
+
</section>
|
| 206 |
+
|
| 207 |
+
<!-- Generated Images Display -->
|
| 208 |
+
<section id="results-section" class="py-12 bg-white" style="display: none;">
|
| 209 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 210 |
+
<div class="text-center">
|
| 211 |
+
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
|
| 212 |
+
Your <span class="gradient-text">Generated</span> Images
|
| 213 |
+
</h2>
|
| 214 |
+
<p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto">
|
| 215 |
+
We've generated multiple variations based on your prompt.
|
| 216 |
+
</p>
|
| 217 |
+
</div>
|
| 218 |
+
|
| 219 |
+
<div id="loading-indicator" class="mt-10">
|
| 220 |
+
<div class="flex flex-col items-center">
|
| 221 |
+
<div class="w-16 h-16 border-4 border-indigo-600 border-t-transparent rounded-full animate-spin"></div>
|
| 222 |
+
<p class="mt-4 text-lg font-medium text-gray-700">Generating your images...</p>
|
| 223 |
+
</div>
|
| 224 |
+
</div>
|
| 225 |
+
|
| 226 |
+
<div id="results-container" class="mt-10 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6"></div>
|
| 227 |
+
|
| 228 |
+
<div class="mt-10 text-center">
|
| 229 |
+
<button id="regenerate-btn" class="inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition duration-300">
|
| 230 |
+
<i class="fas fa-sync-alt mr-2"></i> Regenerate
|
| 231 |
+
</button>
|
| 232 |
+
<button id="download-all-btn" class="ml-4 inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md shadow-sm text-indigo-700 bg-indigo-100 hover:bg-indigo-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition duration-300">
|
| 233 |
+
<i class="fas fa-download mr-2"></i> Download All
|
| 234 |
+
</button>
|
| 235 |
+
</div>
|
| 236 |
+
</div>
|
| 237 |
+
</section>
|
| 238 |
+
|
| 239 |
+
<!-- Features Section -->
|
| 240 |
+
<section class="py-12 bg-gray-50">
|
| 241 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 242 |
+
<div class="text-center">
|
| 243 |
+
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
|
| 244 |
+
Why Choose <span class="gradient-text">RIGU</span>?
|
| 245 |
+
</h2>
|
| 246 |
+
<p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto">
|
| 247 |
+
The most powerful AI image generation platform with unlimited possibilities.
|
| 248 |
+
</p>
|
| 249 |
+
</div>
|
| 250 |
+
|
| 251 |
+
<div class="mt-10">
|
| 252 |
+
<div class="space-y-10 lg:space-y-0 lg:grid lg:grid-cols-3 lg:gap-x-8 lg:gap-y-10">
|
| 253 |
+
<div class="relative card-hover">
|
| 254 |
+
<div class="absolute flex items-center justify-center h-12 w-12 rounded-md bg-indigo-500 text-white">
|
| 255 |
+
<i class="fas fa-bolt text-xl"></i>
|
| 256 |
+
</div>
|
| 257 |
+
<div class="ml-16">
|
| 258 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900">Instant Generation</h3>
|
| 259 |
+
<p class="mt-2 text-base text-gray-500">
|
| 260 |
+
Create stunning images in seconds with our optimized AI models. No waiting in queues.
|
| 261 |
+
</p>
|
| 262 |
+
</div>
|
| 263 |
+
</div>
|
| 264 |
+
|
| 265 |
+
<div class="relative card-hover">
|
| 266 |
+
<div class="absolute flex items-center justify-center h-12 w-12 rounded-md bg-indigo-500 text-white">
|
| 267 |
+
<i class="fas fa-lock-open text-xl"></i>
|
| 268 |
+
</div>
|
| 269 |
+
<div class="ml-16">
|
| 270 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900">Unlimited Creations</h3>
|
| 271 |
+
<p class="mt-2 text-base text-gray-500">
|
| 272 |
+
Generate as many images as you want without restrictions. No monthly limits.
|
| 273 |
+
</p>
|
| 274 |
+
</div>
|
| 275 |
+
</div>
|
| 276 |
+
|
| 277 |
+
<div class="relative card-hover">
|
| 278 |
+
<div class="absolute flex items-center justify-center h-12 w-12 rounded-md bg-indigo-500 text-white">
|
| 279 |
+
<i class="fas fa-copyright text-xl"></i>
|
| 280 |
+
</div>
|
| 281 |
+
<div class="ml-16">
|
| 282 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900">Full Ownership</h3>
|
| 283 |
+
<p class="mt-2 text-base text-gray-500">
|
| 284 |
+
You own the commercial rights to all your generated images. Use them anywhere.
|
| 285 |
+
</p>
|
| 286 |
+
</div>
|
| 287 |
+
</div>
|
| 288 |
+
|
| 289 |
+
<div class="relative card-hover">
|
| 290 |
+
<div class="absolute flex items-center justify-center h-12 w-12 rounded-md bg-indigo-500 text-white">
|
| 291 |
+
<i class="fas fa-random text-xl"></i>
|
| 292 |
+
</div>
|
| 293 |
+
<div class="ml-16">
|
| 294 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900">Multiple Variations</h3>
|
| 295 |
+
<p class="mt-2 text-base text-gray-500">
|
| 296 |
+
Get multiple interpretations of your prompt to choose the perfect version.
|
| 297 |
+
</p>
|
| 298 |
+
</div>
|
| 299 |
+
</div>
|
| 300 |
+
|
| 301 |
+
<div class="relative card-hover">
|
| 302 |
+
<div class="absolute flex items-center justify-center h-12 w-12 rounded-md bg-indigo-500 text-white">
|
| 303 |
+
<i class="fas fa-image text-xl"></i>
|
| 304 |
+
</div>
|
| 305 |
+
<div class="ml-16">
|
| 306 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900">High Resolution</h3>
|
| 307 |
+
<p class="mt-2 text-base text-gray-500">
|
| 308 |
+
Output images up to 4K resolution suitable for printing and professional use.
|
| 309 |
+
</p>
|
| 310 |
+
</div>
|
| 311 |
+
</div>
|
| 312 |
+
|
| 313 |
+
<div class="relative card-hover">
|
| 314 |
+
<div class="absolute flex items-center justify-center h-12 w-12 rounded-md bg-indigo-500 text-white">
|
| 315 |
+
<i class="fas fa-users text-xl"></i>
|
| 316 |
+
</div>
|
| 317 |
+
<div class="ml-16">
|
| 318 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900">Human-Like Results</h3>
|
| 319 |
+
<p class="mt-2 text-base text-gray-500">
|
| 320 |
+
Our AI specializes in creating realistic human figures with accurate anatomy.
|
| 321 |
+
</p>
|
| 322 |
+
</div>
|
| 323 |
+
</div>
|
| 324 |
+
</div>
|
| 325 |
+
</div>
|
| 326 |
+
</div>
|
| 327 |
+
</section>
|
| 328 |
+
|
| 329 |
+
<!-- Pricing Section -->
|
| 330 |
+
<section class="py-12 bg-white">
|
| 331 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 332 |
+
<div class="text-center">
|
| 333 |
+
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
|
| 334 |
+
Simple, <span class="gradient-text">Transparent</span> Pricing
|
| 335 |
+
</h2>
|
| 336 |
+
<p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto">
|
| 337 |
+
Choose the perfect plan for your creative needs.
|
| 338 |
+
</p>
|
| 339 |
+
</div>
|
| 340 |
+
|
| 341 |
+
<div class="mt-16 space-y-8 lg:space-y-0 lg:grid lg:grid-cols-3 lg:gap-x-8">
|
| 342 |
+
<div class="border border-gray-200 rounded-lg shadow-sm divide-y divide-gray-200 card-hover">
|
| 343 |
+
<div class="p-6">
|
| 344 |
+
<h2 class="text-lg leading-6 font-medium text-gray-900">Starter</h2>
|
| 345 |
+
<p class="mt-4">
|
| 346 |
+
<span class="text-4xl font-extrabold text-gray-900">$9</span>
|
| 347 |
+
<span class="text-base font-medium text-gray-500">/month</span>
|
| 348 |
+
</p>
|
| 349 |
+
<p class="mt-4 text-sm text-gray-500">
|
| 350 |
+
Perfect for hobbyists and casual creators.
|
| 351 |
+
</p>
|
| 352 |
+
<div class="mt-6">
|
| 353 |
+
<button class="w-full bg-gray-100 border border-transparent rounded-md py-2 px-4 flex items-center justify-center text-sm font-medium text-gray-700 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500 transition duration-300">
|
| 354 |
+
Get started
|
| 355 |
+
</button>
|
| 356 |
+
</div>
|
| 357 |
+
</div>
|
| 358 |
+
<div class="pt-6 pb-8 px-6">
|
| 359 |
+
<h3 class="text-xs font-medium text-gray-900 tracking-wide uppercase">What's included</h3>
|
| 360 |
+
<ul class="mt-6 space-y-4">
|
| 361 |
+
<li class="flex space-x-3">
|
| 362 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 363 |
+
<span class="text-sm text-gray-500">1000 image generations/month</span>
|
| 364 |
+
</li>
|
| 365 |
+
<li class="flex space-x-3">
|
| 366 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 367 |
+
<span class="text-sm text-gray-500">1080p resolution</span>
|
| 368 |
+
</li>
|
| 369 |
+
<li class="flex space-x-3">
|
| 370 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 371 |
+
<span class="text-sm text-gray-500">Standard generation speed</span>
|
| 372 |
+
</li>
|
| 373 |
+
<li class="flex space-x-3">
|
| 374 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 375 |
+
<span class="text-sm text-gray-500">Commercial rights</span>
|
| 376 |
+
</li>
|
| 377 |
+
</ul>
|
| 378 |
+
</div>
|
| 379 |
+
</div>
|
| 380 |
+
|
| 381 |
+
<div class="border border-gray-200 rounded-lg shadow-sm divide-y divide-gray-200 card-hover transform scale-105">
|
| 382 |
+
<div class="p-6">
|
| 383 |
+
<div class="flex justify-between">
|
| 384 |
+
<h2 class="text-lg leading-6 font-medium text-gray-900">Pro</h2>
|
| 385 |
+
<span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-indigo-100 text-indigo-800">Popular</span>
|
| 386 |
+
</div>
|
| 387 |
+
<p class="mt-4">
|
| 388 |
+
<span class="text-4xl font-extrabold text-gray-900">$29</span>
|
| 389 |
+
<span class="text-base font-medium text-gray-500">/month</span>
|
| 390 |
+
</p>
|
| 391 |
+
<p class="mt-4 text-sm text-gray-500">
|
| 392 |
+
For professionals and small businesses.
|
| 393 |
+
</p>
|
| 394 |
+
<div class="mt-6">
|
| 395 |
+
<button class="w-full bg-indigo-600 border border-transparent rounded-md py-2 px-4 flex items-center justify-center text-sm font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition duration-300">
|
| 396 |
+
Get started
|
| 397 |
+
</button>
|
| 398 |
+
</div>
|
| 399 |
+
</div>
|
| 400 |
+
<div class="pt-6 pb-8 px-6">
|
| 401 |
+
<h3 class="text-xs font-medium text-gray-900 tracking-wide uppercase">What's included</h3>
|
| 402 |
+
<ul class="mt-6 space-y-4">
|
| 403 |
+
<li class="flex space-x-3">
|
| 404 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 405 |
+
<span class="text-sm text-gray-500">Unlimited image generations</span>
|
| 406 |
+
</li>
|
| 407 |
+
<li class="flex space-x-3">
|
| 408 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 409 |
+
<span class="text-sm text-gray-500">4K resolution</span>
|
| 410 |
+
</li>
|
| 411 |
+
<li class="flex space-x-3">
|
| 412 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 413 |
+
<span class="text-sm text-gray-500">Priority generation queue</span>
|
| 414 |
+
</li>
|
| 415 |
+
<li class="flex space-x-3">
|
| 416 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 417 |
+
<span class="text-sm text-gray-500">Private generations</span>
|
| 418 |
+
</li>
|
| 419 |
+
<li class="flex space-x-3">
|
| 420 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 421 |
+
<span class="text-sm text-gray-500">API access</span>
|
| 422 |
+
</li>
|
| 423 |
+
</ul>
|
| 424 |
+
</div>
|
| 425 |
+
</div>
|
| 426 |
+
|
| 427 |
+
<div class="border border-gray-200 rounded-lg shadow-sm divide-y divide-gray-200 card-hover">
|
| 428 |
+
<div class="p-6">
|
| 429 |
+
<h2 class="text-lg leading-6 font-medium text-gray-900">Enterprise</h2>
|
| 430 |
+
<p class="mt-4">
|
| 431 |
+
<span class="text-4xl font-extrabold text-gray-900">$99</span>
|
| 432 |
+
<span class="text-base font-medium text-gray-500">/month</span>
|
| 433 |
+
</p>
|
| 434 |
+
<p class="mt-4 text-sm text-gray-500">
|
| 435 |
+
For large scale commercial operations.
|
| 436 |
+
</p>
|
| 437 |
+
<div class="mt-6">
|
| 438 |
+
<button class="w-full bg-gray-100 border border-transparent rounded-md py-2 px-4 flex items-center justify-center text-sm font-medium text-gray-700 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500 transition duration-300">
|
| 439 |
+
Get started
|
| 440 |
+
</button>
|
| 441 |
+
</div>
|
| 442 |
+
</div>
|
| 443 |
+
<div class="pt-6 pb-8 px-6">
|
| 444 |
+
<h3 class="text-xs font-medium text-gray-900 tracking-wide uppercase">What's included</h3>
|
| 445 |
+
<ul class="mt-6 space-y-4">
|
| 446 |
+
<li class="flex space-x-3">
|
| 447 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 448 |
+
<span class="text-sm text-gray-500">Unlimited image generations</span>
|
| 449 |
+
</li>
|
| 450 |
+
<li class="flex space-x-3">
|
| 451 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 452 |
+
<span class="text-sm text-gray-500">8K resolution</span>
|
| 453 |
+
</li>
|
| 454 |
+
<li class="flex space-x-3">
|
| 455 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 456 |
+
<span class="text-sm text-gray-500">Highest priority generation</span>
|
| 457 |
+
</li>
|
| 458 |
+
<li class="flex space-x-3">
|
| 459 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 460 |
+
<span class="text-sm text-gray-500">Custom AI model training</span>
|
| 461 |
+
</li>
|
| 462 |
+
<li class="flex space-x-3">
|
| 463 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 464 |
+
<span class="text-sm text-gray-500">Dedicated support</span>
|
| 465 |
+
</li>
|
| 466 |
+
<li class="flex space-x-3">
|
| 467 |
+
<i class="fas fa-check h-5 w-5 text-green-500"></i>
|
| 468 |
+
<span class="text-sm text-gray-500">Team accounts</span>
|
| 469 |
+
</li>
|
| 470 |
+
</ul>
|
| 471 |
+
</div>
|
| 472 |
+
</div>
|
| 473 |
+
</div>
|
| 474 |
+
</div>
|
| 475 |
+
</section>
|
| 476 |
+
|
| 477 |
+
<!-- CTA Section -->
|
| 478 |
+
<section class="bg-indigo-700">
|
| 479 |
+
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8 lg:flex lg:items-center lg:justify-between">
|
| 480 |
+
<h2 class="text-3xl font-extrabold tracking-tight text-white sm:text-4xl">
|
| 481 |
+
<span class="block">Ready to unleash</span>
|
| 482 |
+
<span class="block text-indigo-200">your creativity?</span>
|
| 483 |
+
</h2>
|
| 484 |
+
<div class="mt-8 flex lg:mt-0 lg:flex-shrink-0">
|
| 485 |
+
<div class="inline-flex rounded-md shadow">
|
| 486 |
+
<a href="#" class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-indigo-600 bg-white hover:bg-indigo-50 transition duration-300">
|
| 487 |
+
Start Generating Now
|
| 488 |
+
</a>
|
| 489 |
+
</div>
|
| 490 |
+
<div class="ml-3 inline-flex rounded-md shadow">
|
| 491 |
+
<a href="#" class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 bg-opacity-60 hover:bg-opacity-70 transition duration-300">
|
| 492 |
+
Learn More
|
| 493 |
+
</a>
|
| 494 |
+
</div>
|
| 495 |
+
</div>
|
| 496 |
+
</div>
|
| 497 |
+
</section>
|
| 498 |
+
|
| 499 |
+
<!-- Footer -->
|
| 500 |
+
<footer class="bg-white">
|
| 501 |
+
<div class="max-w-7xl mx-auto py-12 px-4 overflow-hidden sm:px-6 lg:px-8">
|
| 502 |
+
<nav class="-mx-5 -my-2 flex flex-wrap justify-center" aria-label="Footer">
|
| 503 |
+
<div class="px-5 py-2">
|
| 504 |
+
<a href="#" class="text-base text-gray-500 hover:text-gray-900">About</a>
|
| 505 |
+
</div>
|
| 506 |
+
<div class="px-5 py-2">
|
| 507 |
+
<a href="#" class="text-base text-gray-500 hover:text-gray-900">Blog</a>
|
| 508 |
+
</div>
|
| 509 |
+
<div class="px-5 py-2">
|
| 510 |
+
<a href="#" class="text-base text-gray-500 hover:text-gray-900">Jobs</a>
|
| 511 |
+
</div>
|
| 512 |
+
<div class="px-5 py-2">
|
| 513 |
+
<a href="#" class="text-base text-gray-500 hover:text-gray-900">Press</a>
|
| 514 |
+
</div>
|
| 515 |
+
<div class="px-5 py-2">
|
| 516 |
+
<a href="#" class="text-base text-gray-500 hover:text-gray-900">Accessibility</a>
|
| 517 |
+
</div>
|
| 518 |
+
<div class="px-5 py-2">
|
| 519 |
+
<a href="#" class="text-base text-gray-500 hover:text-gray-900">Partners</a>
|
| 520 |
+
</div>
|
| 521 |
+
</nav>
|
| 522 |
+
<div class="mt-8 flex justify-center space-x-6">
|
| 523 |
+
<a href="#" class="text-gray-400 hover:text-gray-500">
|
| 524 |
+
<span class="sr-only">Facebook</span>
|
| 525 |
+
<i class="fab fa-facebook text-xl"></i>
|
| 526 |
+
</a>
|
| 527 |
+
<a href="#" class="text-gray-400 hover:text-gray-500">
|
| 528 |
+
<span class="sr-only">Instagram</span>
|
| 529 |
+
<i class="fab fa-instagram text-xl"></i>
|
| 530 |
+
</a>
|
| 531 |
+
<a href="#" class="text-gray-400 hover:text-gray-500">
|
| 532 |
+
<span class="sr-only">Twitter</span>
|
| 533 |
+
<i class="fab fa-twitter text-xl"></i>
|
| 534 |
+
</a>
|
| 535 |
+
<a href="#" class="text-gray-400 hover:text-gray-500">
|
| 536 |
+
<span class="sr-only">GitHub</span>
|
| 537 |
+
<i class="fab fa-github text-xl"></i>
|
| 538 |
+
</a>
|
| 539 |
+
<a href="#" class="text-gray-400 hover:text-gray-500">
|
| 540 |
+
<span class="sr-only">Dribbble</span>
|
| 541 |
+
<i class="fab fa-dribbble text-xl"></i>
|
| 542 |
+
</a>
|
| 543 |
+
</div>
|
| 544 |
+
<p class="mt-8 text-center text-base text-gray-400">
|
| 545 |
+
© 2023 RIGU Inc. All rights reserved.
|
| 546 |
+
</p>
|
| 547 |
+
</div>
|
| 548 |
+
</footer>
|
| 549 |
+
|
| 550 |
+
<!-- JavaScript for interactions -->
|
| 551 |
+
<script>
|
| 552 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 553 |
+
// Generate button click handler
|
| 554 |
+
document.getElementById('generate-btn').addEventListener('click', function() {
|
| 555 |
+
const prompt = document.getElementById('prompt').value.trim();
|
| 556 |
+
|
| 557 |
+
if (!prompt) {
|
| 558 |
+
alert('Please enter a prompt to generate images.');
|
| 559 |
+
return;
|
| 560 |
+
}
|
| 561 |
+
|
| 562 |
+
// Show results section
|
| 563 |
+
document.getElementById('results-section').style.display = 'block';
|
| 564 |
+
|
| 565 |
+
// Scroll to results
|
| 566 |
+
document.getElementById('results-section').scrollIntoView({ behavior: 'smooth' });
|
| 567 |
+
|
| 568 |
+
// Show loading
|
| 569 |
+
document.getElementById('results-container').innerHTML = '';
|
| 570 |
+
document.getElementById('loading-indicator').style.display = 'block';
|
| 571 |
+
|
| 572 |
+
// Simulate API call with setTimeout
|
| 573 |
+
setTimeout(function() {
|
| 574 |
+
document.getElementById('loading-indicator').style.display = 'none';
|
| 575 |
+
|
| 576 |
+
// Generate sample results
|
| 577 |
+
const results = [
|
| 578 |
+
{ id: 1, url: 'https://images.unsplash.com/photo-1635070041078-e363dbe005cb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80', alt: 'Generated image 1' },
|
| 579 |
+
{ id: 2, url: 'https://images.unsplash.com/photo-1682685797208-c741d58c2eff?ixlib=rb-4.0.3&ixid=M3wxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80', alt: 'Generated image 2' },
|
| 580 |
+
{ id: 3, url: 'https://images.unsplash.com/photo-1695653422905-909e9b3395dc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80', alt: 'Generated image 3' }
|
| 581 |
+
];
|
| 582 |
+
|
| 583 |
+
// Display results
|
| 584 |
+
const resultsContainer = document.getElementById('results-container');
|
| 585 |
+
resultsContainer.innerHTML = '';
|
| 586 |
+
|
| 587 |
+
results.forEach(result => {
|
| 588 |
+
const card = document.createElement('div');
|
| 589 |
+
card.className = 'bg-white rounded-lg overflow-hidden shadow-md card-hover';
|
| 590 |
+
card.innerHTML = `
|
| 591 |
+
<div class="relative aspect-w-1 aspect-h-1">
|
| 592 |
+
<img src="${result.url}" alt="${result.alt}" class="w-full h-64 object-cover">
|
| 593 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black/40 to-transparent opacity-0 hover:opacity-100 transition-opacity duration-300 flex items-end p-4">
|
| 594 |
+
<div class="flex space-x-2 mt-auto">
|
| 595 |
+
<button class="download-btn bg-white rounded-full p-2 shadow hover:bg-gray-100 transition" data-id="${result.id}">
|
| 596 |
+
<i class="fas fa-download text-gray-800"></i>
|
| 597 |
+
</button>
|
| 598 |
+
<button class="like-btn bg-white rounded-full p-2 shadow hover:bg-gray-100 transition">
|
| 599 |
+
<i class="far fa-heart text-gray-800"></i>
|
| 600 |
+
</button>
|
| 601 |
+
<button class="remix-btn bg-white rounded-full p-2 shadow hover:bg-gray-100 transition">
|
| 602 |
+
<i class="fas fa-edit text-gray-800"></i>
|
| 603 |
+
</button>
|
| 604 |
+
</div>
|
| 605 |
+
</div>
|
| 606 |
+
</div>
|
| 607 |
+
<div class="p-4">
|
| 608 |
+
<p class="text-sm text-gray-600">${prompt}</p>
|
| 609 |
+
</div>
|
| 610 |
+
`;
|
| 611 |
+
resultsContainer.appendChild(card);
|
| 612 |
+
});
|
| 613 |
+
|
| 614 |
+
// Add event listeners for buttons in the cards
|
| 615 |
+
document.querySelectorAll('.download-btn').forEach(btn => {
|
| 616 |
+
btn.addEventListener('click', function() {
|
| 617 |
+
alert(`Downloading image ${this.getAttribute('data-id')}`);
|
| 618 |
+
});
|
| 619 |
+
});
|
| 620 |
+
|
| 621 |
+
document.querySelectorAll('.like-btn').forEach(btn => {
|
| 622 |
+
btn.addEventListener('click', function() {
|
| 623 |
+
const icon = this.querySelector('i');
|
| 624 |
+
if (icon.classList.contains('far')) {
|
| 625 |
+
icon.classList.remove('far');
|
| 626 |
+
icon.classList.add('fas', 'text-red-500');
|
| 627 |
+
} else {
|
| 628 |
+
icon.classList.remove('fas', 'text-red-500');
|
| 629 |
+
icon.classList.add('far');
|
| 630 |
+
}
|
| 631 |
+
});
|
| 632 |
+
});
|
| 633 |
+
|
| 634 |
+
document.querySelectorAll('.remix-btn').forEach(btn => {
|
| 635 |
+
btn.addEventListener('click', function() {
|
| 636 |
+
alert('This would remix the image with variations');
|
| 637 |
+
});
|
| 638 |
+
});
|
| 639 |
+
|
| 640 |
+
}, 2000); // Simulate 2 second delay
|
| 641 |
+
});
|
| 642 |
+
|
| 643 |
+
// Regenerate button
|
| 644 |
+
document.getElementById('regenerate-btn').addEventListener('click', function() {
|
| 645 |
+
document.getElementById('generate-btn').click();
|
| 646 |
+
});
|
| 647 |
+
|
| 648 |
+
// Download all button
|
| 649 |
+
document.getElementById('download-all-btn').addEventListener('click', function() {
|
| 650 |
+
alert('This would download all generated images as a ZIP file');
|
| 651 |
+
});
|
| 652 |
+
|
| 653 |
+
// File upload hover effect
|
| 654 |
+
document.querySelector('.file-upload').addEventListener('mouseenter', function() {
|
| 655 |
+
this.querySelector('svg').style.transform = 'scale(1.1)';
|
| 656 |
+
});
|
| 657 |
+
|
| 658 |
+
document.querySelector('.file-upload').addEventListener('mouseleave', function() {
|
| 659 |
+
this.querySelector('svg').style.transform = 'scale(1)';
|
| 660 |
+
});
|
| 661 |
+
});
|
| 662 |
+
</script>
|
| 663 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Sunilsahani/image-generator" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 664 |
+
</html>
|