Spaces:
Running
Running
The clothes doesn't removed it's still the same
Browse files- README.md +9 -5
- index.html +288 -18
README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: NudeAI Magic Wand ✨
|
| 3 |
+
colorFrom: gray
|
| 4 |
+
colorTo: red
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
| 14 |
+
|
index.html
CHANGED
|
@@ -1,19 +1,289 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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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 |
+
<title>StripAI Magic - Remove Clothes from Images</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<style>
|
| 11 |
+
.upload-area {
|
| 12 |
+
border: 2px dashed #ccc;
|
| 13 |
+
transition: all 0.3s ease;
|
| 14 |
+
}
|
| 15 |
+
.upload-area:hover {
|
| 16 |
+
border-color: #888;
|
| 17 |
+
background-color: rgba(0, 0, 0, 0.02);
|
| 18 |
+
}
|
| 19 |
+
.gradient-bg {
|
| 20 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 21 |
+
}
|
| 22 |
+
.result-container {
|
| 23 |
+
transition: all 0.5s ease;
|
| 24 |
+
opacity: 0;
|
| 25 |
+
height: 0;
|
| 26 |
+
overflow: hidden;
|
| 27 |
+
}
|
| 28 |
+
.result-container.show {
|
| 29 |
+
opacity: 1;
|
| 30 |
+
height: auto;
|
| 31 |
+
}
|
| 32 |
+
</style>
|
| 33 |
+
</head>
|
| 34 |
+
<body class="bg-gray-50 min-h-screen">
|
| 35 |
+
<div class="gradient-bg text-white py-6 shadow-lg">
|
| 36 |
+
<div class="container mx-auto px-4">
|
| 37 |
+
<div class="flex items-center justify-between">
|
| 38 |
+
<div class="flex items-center space-x-2">
|
| 39 |
+
<i data-feather="magic" class="w-8 h-8"></i>
|
| 40 |
+
<h1 class="text-2xl font-bold">StripAI Magic</h1>
|
| 41 |
+
</div>
|
| 42 |
+
<nav>
|
| 43 |
+
<ul class="flex space-x-6">
|
| 44 |
+
<li><a href="#" class="hover:underline">Home</a></li>
|
| 45 |
+
<li><a href="#" class="hover:underline">Pricing</a></li>
|
| 46 |
+
<li><a href="#" class="hover:underline">FAQ</a></li>
|
| 47 |
+
</ul>
|
| 48 |
+
</nav>
|
| 49 |
+
</div>
|
| 50 |
+
</div>
|
| 51 |
+
</div>
|
| 52 |
+
|
| 53 |
+
<main class="container mx-auto px-4 py-12">
|
| 54 |
+
<section class="text-center mb-12">
|
| 55 |
+
<h2 class="text-4xl font-bold text-gray-800 mb-4">AI-Powered Clothes Removal</h2>
|
| 56 |
+
<p class="text-xl text-gray-600 max-w-2xl mx-auto">
|
| 57 |
+
Upload any photo and let our powerful AI remove clothes magically in seconds.
|
| 58 |
+
Uses advanced deep learning models for realistic results. 100% private processing.
|
| 59 |
+
</p>
|
| 60 |
+
</section>
|
| 61 |
+
|
| 62 |
+
<section class="max-w-3xl mx-auto bg-white rounded-xl shadow-md overflow-hidden p-6 mb-12">
|
| 63 |
+
<div class="upload-area rounded-lg p-8 text-center cursor-pointer mb-6" id="uploadArea">
|
| 64 |
+
<i data-feather="upload" class="w-12 h-12 mx-auto text-gray-400 mb-4"></i>
|
| 65 |
+
<h3 class="text-xl font-semibold text-gray-700 mb-2">Drag & Drop Your Image Here</h3>
|
| 66 |
+
<p class="text-gray-500 mb-4">or click to browse files</p>
|
| 67 |
+
<input type="file" id="fileInput" class="hidden" accept="image/*">
|
| 68 |
+
<button class="bg-purple-600 hover:bg-purple-700 text-white font-medium py-2 px-6 rounded-lg transition">
|
| 69 |
+
Select Image
|
| 70 |
+
</button>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
<div class="settings mb-6">
|
| 74 |
+
<h4 class="text-lg font-medium text-gray-700 mb-3">Adjust Settings</h4>
|
| 75 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
| 76 |
+
<div>
|
| 77 |
+
<label class="block text-gray-600 text-sm mb-2">Clothing Type</label>
|
| 78 |
+
<select class="w-full p-2 border rounded-lg">
|
| 79 |
+
<option>Automatic Detection</option>
|
| 80 |
+
<option>Shirt/Top</option>
|
| 81 |
+
<option>Pants/Bottom</option>
|
| 82 |
+
<option>Full Outfit</option>
|
| 83 |
+
</select>
|
| 84 |
+
</div>
|
| 85 |
+
<div>
|
| 86 |
+
<label class="block text-gray-600 text-sm mb-2">Strength</label>
|
| 87 |
+
<input type="range" min="1" max="10" value="5" class="w-full">
|
| 88 |
+
</div>
|
| 89 |
+
<div>
|
| 90 |
+
<label class="block text-gray-600 text-sm mb-2">Privacy Level</label>
|
| 91 |
+
<select class="w-full p-2 border rounded-lg">
|
| 92 |
+
<option>High (Auto-delete in 1h)</option>
|
| 93 |
+
<option>Medium (Auto-delete in 24h)</option>
|
| 94 |
+
<option>None (Save my images)</option>
|
| 95 |
+
</select>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
|
| 100 |
+
<div class="text-center">
|
| 101 |
+
<button id="processBtn" class="bg-pink-600 hover:bg-pink-700 text-white font-bold py-3 px-8 rounded-lg text-lg transition transform hover:scale-105 disabled:opacity-50 disabled:cursor-not-allowed" disabled>
|
| 102 |
+
<span id="btnText">Process Image</span>
|
| 103 |
+
<i data-feather="loader" class="w-5 h-5 ml-2 animate-spin hidden" id="spinner"></i>
|
| 104 |
+
</button>
|
| 105 |
+
</div>
|
| 106 |
+
</section>
|
| 107 |
+
|
| 108 |
+
<section class="result-container max-w-4xl mx-auto bg-white rounded-xl shadow-md overflow-hidden p-6" id="resultContainer">
|
| 109 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 110 |
+
<div class="text-center">
|
| 111 |
+
<h4 class="text-lg font-medium text-gray-700 mb-3">Original</h4>
|
| 112 |
+
<div class="border rounded-lg overflow-hidden">
|
| 113 |
+
<img id="originalImage" src="" alt="Original Image" class="w-full h-auto">
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
<div class="text-center">
|
| 117 |
+
<h4 class="text-lg font-medium text-gray-700 mb-3">Result</h4>
|
| 118 |
+
<div class="border rounded-lg overflow-hidden bg-gray-100 flex items-center justify-center" style="min-height: 300px;">
|
| 119 |
+
<img id="resultImage" src="" alt="Processed Image" class="w-full h-auto hidden">
|
| 120 |
+
<p id="placeholderText" class="text-gray-500">Your processed image will appear here</p>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
|
| 125 |
+
<div class="mt-6 flex justify-center space-x-4">
|
| 126 |
+
<button class="bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-6 rounded-lg transition flex items-center">
|
| 127 |
+
<i data-feather="download" class="w-4 h-4 mr-2"></i>
|
| 128 |
+
Download
|
| 129 |
+
</button>
|
| 130 |
+
<button class="bg-gray-600 hover:bg-gray-700 text-white font-medium py-2 px-6 rounded-lg transition flex items-center">
|
| 131 |
+
<i data-feather="share-2" class="w-4 h-4 mr-2"></i>
|
| 132 |
+
Share
|
| 133 |
+
</button>
|
| 134 |
+
<button class="bg-purple-600 hover:bg-purple-700 text-white font-medium py-2 px-6 rounded-lg transition flex items-center">
|
| 135 |
+
<i data-feather="repeat" class="w-4 h-4 mr-2"></i>
|
| 136 |
+
Try Another
|
| 137 |
+
</button>
|
| 138 |
+
</div>
|
| 139 |
+
</section>
|
| 140 |
+
|
| 141 |
+
<section class="max-w-4xl mx-auto mt-16">
|
| 142 |
+
<h3 class="text-2xl font-bold text-center text-gray-800 mb-8">How It Works</h3>
|
| 143 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
| 144 |
+
<div class="text-center">
|
| 145 |
+
<div class="bg-purple-100 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4">
|
| 146 |
+
<i data-feather="upload" class="text-purple-600 w-6 h-6"></i>
|
| 147 |
+
</div>
|
| 148 |
+
<h4 class="font-medium text-gray-700 mb-2">1. Upload Image</h4>
|
| 149 |
+
<p class="text-gray-600">Select any photo from your device or drag and drop it into our uploader</p>
|
| 150 |
+
</div>
|
| 151 |
+
<div class="text-center">
|
| 152 |
+
<div class="bg-pink-100 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4">
|
| 153 |
+
<i data-feather="cpu" class="text-pink-600 w-6 h-6"></i>
|
| 154 |
+
</div>
|
| 155 |
+
<h4 class="font-medium text-gray-700 mb-2">2. AI Processing</h4>
|
| 156 |
+
<p class="text-gray-600">Our advanced AI analyzes the image and removes clothing with precision</p>
|
| 157 |
+
</div>
|
| 158 |
+
<div class="text-center">
|
| 159 |
+
<div class="bg-blue-100 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4">
|
| 160 |
+
<i data-feather="download" class="text-blue-600 w-6 h-6"></i>
|
| 161 |
+
</div>
|
| 162 |
+
<h4 class="font-medium text-gray-700 mb-2">3. Download Result</h4>
|
| 163 |
+
<p class="text-gray-600">Get your processed image instantly and download it privately</p>
|
| 164 |
+
</div>
|
| 165 |
+
</div>
|
| 166 |
+
</section>
|
| 167 |
+
</main>
|
| 168 |
+
|
| 169 |
+
<footer class="bg-gray-800 text-white py-8 mt-16">
|
| 170 |
+
<div class="container mx-auto px-4">
|
| 171 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
| 172 |
+
<div class="mb-4 md:mb-0">
|
| 173 |
+
<div class="flex items-center space-x-2">
|
| 174 |
+
<i data-feather="magic" class="w-6 h-6"></i>
|
| 175 |
+
<span class="text-xl font-bold">StripAI Magic</span>
|
| 176 |
+
</div>
|
| 177 |
+
<p class="text-gray-400 mt-2">The future of image processing is here</p>
|
| 178 |
+
</div>
|
| 179 |
+
<div class="text-center md:text-right">
|
| 180 |
+
<p class="text-gray-400">© 2023 StripAI Magic. All rights reserved.</p>
|
| 181 |
+
<div class="flex justify-center md:justify-end space-x-4 mt-2">
|
| 182 |
+
<a href="#" class="text-gray-400 hover:text-white">Privacy Policy</a>
|
| 183 |
+
<a href="#" class="text-gray-400 hover:text-white">Terms of Service</a>
|
| 184 |
+
<a href="#" class="text-gray-400 hover:text-white">Contact</a>
|
| 185 |
+
</div>
|
| 186 |
+
</div>
|
| 187 |
+
</div>
|
| 188 |
+
</div>
|
| 189 |
+
</footer>
|
| 190 |
+
|
| 191 |
+
<script>
|
| 192 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 193 |
+
feather.replace();
|
| 194 |
+
|
| 195 |
+
const uploadArea = document.getElementById('uploadArea');
|
| 196 |
+
const fileInput = document.getElementById('fileInput');
|
| 197 |
+
const processBtn = document.getElementById('processBtn');
|
| 198 |
+
const originalImage = document.getElementById('originalImage');
|
| 199 |
+
const resultImage = document.getElementById('resultImage');
|
| 200 |
+
const placeholderText = document.getElementById('placeholderText');
|
| 201 |
+
const resultContainer = document.getElementById('resultContainer');
|
| 202 |
+
const btnText = document.getElementById('btnText');
|
| 203 |
+
const spinner = document.getElementById('spinner');
|
| 204 |
+
|
| 205 |
+
// Handle drag and drop
|
| 206 |
+
uploadArea.addEventListener('click', function() {
|
| 207 |
+
fileInput.click();
|
| 208 |
+
});
|
| 209 |
+
|
| 210 |
+
uploadArea.addEventListener('dragover', function(e) {
|
| 211 |
+
e.preventDefault();
|
| 212 |
+
this.classList.add('border-pink-500', 'bg-pink-50');
|
| 213 |
+
});
|
| 214 |
+
|
| 215 |
+
uploadArea.addEventListener('dragleave', function() {
|
| 216 |
+
this.classList.remove('border-pink-500', 'bg-pink-50');
|
| 217 |
+
});
|
| 218 |
+
|
| 219 |
+
uploadArea.addEventListener('drop', function(e) {
|
| 220 |
+
e.preventDefault();
|
| 221 |
+
this.classList.remove('border-pink-500', 'bg-pink-50');
|
| 222 |
+
|
| 223 |
+
if (e.dataTransfer.files.length) {
|
| 224 |
+
fileInput.files = e.dataTransfer.files;
|
| 225 |
+
handleFileSelect();
|
| 226 |
+
}
|
| 227 |
+
});
|
| 228 |
+
|
| 229 |
+
fileInput.addEventListener('change', handleFileSelect);
|
| 230 |
+
|
| 231 |
+
function handleFileSelect() {
|
| 232 |
+
if (fileInput.files && fileInput.files[0]) {
|
| 233 |
+
const reader = new FileReader();
|
| 234 |
+
|
| 235 |
+
reader.onload = function(e) {
|
| 236 |
+
originalImage.src = e.target.result;
|
| 237 |
+
processBtn.disabled = false;
|
| 238 |
+
uploadArea.innerHTML = `
|
| 239 |
+
<div class="flex items-center justify-center space-x-4">
|
| 240 |
+
<img src="${e.target.result}" alt="Preview" class="h-16 w-16 object-cover rounded-lg">
|
| 241 |
+
<div class="text-left">
|
| 242 |
+
<p class="font-medium">${fileInput.files[0].name}</p>
|
| 243 |
+
<p class="text-sm text-gray-500">${(fileInput.files[0].size / 1024 / 1024).toFixed(2)} MB</p>
|
| 244 |
+
</div>
|
| 245 |
+
</div>
|
| 246 |
+
`;
|
| 247 |
+
};
|
| 248 |
+
|
| 249 |
+
reader.readAsDataURL(fileInput.files[0]);
|
| 250 |
+
}
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
processBtn.addEventListener('click', function() {
|
| 254 |
+
// Show processing state
|
| 255 |
+
btnText.textContent = 'Processing...';
|
| 256 |
+
spinner.classList.remove('hidden');
|
| 257 |
+
processBtn.disabled = true;
|
| 258 |
+
document.getElementById('processingMessage').classList.remove('hidden');
|
| 259 |
+
document.getElementById('processingMessage').classList.add('hidden');
|
| 260 |
+
// Call our AI processing API
|
| 261 |
+
fetch('https://api.nudify.example.com/process', {
|
| 262 |
+
method: 'POST',
|
| 263 |
+
body: new FormData().append('image', fileInput.files[0])
|
| 264 |
+
})
|
| 265 |
+
.then(response => response.json())
|
| 266 |
+
.then(data => {
|
| 267 |
+
if (data.success) {
|
| 268 |
+
resultImage.src = data.processedImageUrl;
|
| 269 |
+
resultImage.classList.remove('hidden');
|
| 270 |
+
placeholderText.classList.add('hidden');
|
| 271 |
+
resultContainer.classList.add('show');
|
| 272 |
+
} else {
|
| 273 |
+
alert('Processing failed: ' + data.error);
|
| 274 |
+
}
|
| 275 |
+
})
|
| 276 |
+
.catch(error => {
|
| 277 |
+
alert('Error: ' + error.message);
|
| 278 |
+
})
|
| 279 |
+
.finally(() => {
|
| 280 |
+
// Reset button state
|
| 281 |
+
btnText.textContent = 'Process Image';
|
| 282 |
+
spinner.classList.add('hidden');
|
| 283 |
+
processBtn.disabled = false;
|
| 284 |
+
});
|
| 285 |
+
});
|
| 286 |
+
});
|
| 287 |
+
</script>
|
| 288 |
+
</body>
|
| 289 |
</html>
|