Spaces:
Running
Running
Use face flipper to FaceSwap image
Browse files- README.md +9 -5
- index.html +126 -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: FaceFlipper Fiesta π
|
| 3 |
+
colorFrom: red
|
| 4 |
+
colorTo: yellow
|
| 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,127 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>FaceFlipper | AI-Powered Faceswap</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<style>
|
| 12 |
+
@keyframes float {
|
| 13 |
+
0%, 100% { transform: translateY(0); }
|
| 14 |
+
50% { transform: translateY(-20px); }
|
| 15 |
+
}
|
| 16 |
+
.floating {
|
| 17 |
+
animation: float 6s ease-in-out infinite;
|
| 18 |
+
}
|
| 19 |
+
.gradient-bg {
|
| 20 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 21 |
+
}
|
| 22 |
+
.faceswap-container {
|
| 23 |
+
perspective: 1000px;
|
| 24 |
+
}
|
| 25 |
+
.faceswap-card {
|
| 26 |
+
transform-style: preserve-3d;
|
| 27 |
+
transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
| 28 |
+
}
|
| 29 |
+
.faceswap-card:hover {
|
| 30 |
+
transform: rotateY(180deg);
|
| 31 |
+
}
|
| 32 |
+
.faceswap-front, .faceswap-back {
|
| 33 |
+
backface-visibility: hidden;
|
| 34 |
+
border-radius: 1rem;
|
| 35 |
+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
| 36 |
+
}
|
| 37 |
+
.faceswap-back {
|
| 38 |
+
transform: rotateY(180deg);
|
| 39 |
+
}
|
| 40 |
+
</style>
|
| 41 |
+
</head>
|
| 42 |
+
<body class="gradient-bg min-h-screen text-white">
|
| 43 |
+
<!-- Hero Section -->
|
| 44 |
+
<div class="container mx-auto px-6 py-16 text-center">
|
| 45 |
+
<h1 class="text-5xl font-bold mb-6">Face<span class="text-indigo-200">Flipper</span> π</h1>
|
| 46 |
+
<p class="text-xl mb-12 max-w-2xl mx-auto">The most advanced AI-powered faceswap technology that creates seamless, natural-looking transformations</p>
|
| 47 |
+
|
| 48 |
+
<!-- Faceswap Demo -->
|
| 49 |
+
<div class="faceswap-container mx-auto w-full max-w-2xl mb-16">
|
| 50 |
+
<div class="faceswap-card relative w-full h-96">
|
| 51 |
+
<div class="faceswap-front absolute w-full h-full bg-indigo-900 rounded-2xl flex items-center justify-center">
|
| 52 |
+
<img src="http://static.photos/people/640x360/1" alt="Original Face" class="w-full h-full object-cover rounded-2xl">
|
| 53 |
+
<div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-50 p-4 rounded-b-2xl">
|
| 54 |
+
<p class="text-white">Original</p>
|
| 55 |
+
</div>
|
| 56 |
+
</div>
|
| 57 |
+
<div class="faceswap-back absolute w-full h-full bg-purple-900 rounded-2xl flex items-center justify-center">
|
| 58 |
+
<img src="http://static.photos/people/640x360/2" alt="Swapped Face" class="w-full h-full object-cover rounded-2xl">
|
| 59 |
+
<div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-50 p-4 rounded-b-2xl">
|
| 60 |
+
<p class="text-white">Swapped</p>
|
| 61 |
+
</div>
|
| 62 |
+
</div>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
|
| 66 |
+
<!-- Features -->
|
| 67 |
+
<div class="grid md:grid-cols-3 gap-8 mb-16">
|
| 68 |
+
<div class="bg-white bg-opacity-10 p-6 rounded-xl backdrop-blur-sm">
|
| 69 |
+
<i data-feather="zap" class="w-12 h-12 mb-4 text-indigo-300 mx-auto"></i>
|
| 70 |
+
<h3 class="text-xl font-semibold mb-2">Lightning Fast</h3>
|
| 71 |
+
<p class="text-indigo-100">Process faceswaps in seconds with our optimized AI algorithms</p>
|
| 72 |
+
</div>
|
| 73 |
+
<div class="bg-white bg-opacity-10 p-6 rounded-xl backdrop-blur-sm">
|
| 74 |
+
<i data-feather="eye" class="w-12 h-12 mb-4 text-indigo-300 mx-auto"></i>
|
| 75 |
+
<h3 class="text-xl font-semibold mb-2">Realistic Results</h3>
|
| 76 |
+
<p class="text-indigo-100">Preserves lighting, skin tones and expressions perfectly</p>
|
| 77 |
+
</div>
|
| 78 |
+
<div class="bg-white bg-opacity-10 p-6 rounded-xl backdrop-blur-sm">
|
| 79 |
+
<i data-feather="sliders" class="w-12 h-12 mb-4 text-indigo-300 mx-auto"></i>
|
| 80 |
+
<h3 class="text-xl font-semibold mb-2">Advanced Controls</h3>
|
| 81 |
+
<p class="text-indigo-100">Fine-tune every aspect of your faceswap with precision</p>
|
| 82 |
+
</div>
|
| 83 |
+
</div>
|
| 84 |
+
<!-- CTA -->
|
| 85 |
+
<div class="flex flex-col md:flex-row gap-4 justify-center">
|
| 86 |
+
<button class="bg-white text-indigo-900 font-bold px-8 py-4 rounded-full hover:bg-indigo-100 transition-all duration-300 flex items-center">
|
| 87 |
+
<i data-feather="upload" class="mr-2"></i> Upload Image
|
| 88 |
+
</button>
|
| 89 |
+
<button class="bg-indigo-300 text-indigo-900 font-bold px-8 py-4 rounded-full hover:bg-indigo-200 transition-all duration-300 flex items-center">
|
| 90 |
+
<i data-feather="repeat" class="mr-2"></i> FaceSwap Now
|
| 91 |
+
</button>
|
| 92 |
+
</div>
|
| 93 |
+
</div>
|
| 94 |
+
<!-- Floating Faces -->
|
| 95 |
+
<div class="absolute top-1/4 left-10 w-16 h-16 rounded-full bg-purple-400 opacity-20 floating"></div>
|
| 96 |
+
<div class="absolute bottom-1/3 right-20 w-24 h-24 rounded-full bg-indigo-400 opacity-20 floating" style="animation-delay: 2s;"></div>
|
| 97 |
+
<div class="absolute top-1/3 right-1/4 w-20 h-20 rounded-full bg-white opacity-10 floating" style="animation-delay: 4s;"></div>
|
| 98 |
+
|
| 99 |
+
<!-- FaceSwap Controls -->
|
| 100 |
+
<div class="fixed bottom-8 left-0 right-0 flex justify-center space-x-4">
|
| 101 |
+
<div class="bg-white bg-opacity-20 backdrop-blur-sm p-4 rounded-full shadow-lg">
|
| 102 |
+
<div class="flex space-x-4">
|
| 103 |
+
<button class="bg-indigo-500 text-white p-3 rounded-full hover:bg-indigo-600 transition">
|
| 104 |
+
<i data-feather="image"></i>
|
| 105 |
+
</button>
|
| 106 |
+
<button class="bg-purple-500 text-white p-3 rounded-full hover:bg-purple-600 transition">
|
| 107 |
+
<i data-feather="refresh-cw"></i>
|
| 108 |
+
</button>
|
| 109 |
+
<button class="bg-pink-500 text-white p-3 rounded-full hover:bg-pink-600 transition">
|
| 110 |
+
<i data-feather="download"></i>
|
| 111 |
+
</button>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
<script>
|
| 116 |
+
feather.replace();
|
| 117 |
+
|
| 118 |
+
// Simple animation for the faceswap card
|
| 119 |
+
document.querySelector('.faceswap-card').addEventListener('mouseenter', function() {
|
| 120 |
+
this.style.transform = 'rotateY(180deg)';
|
| 121 |
+
});
|
| 122 |
+
document.querySelector('.faceswap-card').addEventListener('mouseleave', function() {
|
| 123 |
+
this.style.transform = 'rotateY(0deg)';
|
| 124 |
+
});
|
| 125 |
+
</script>
|
| 126 |
+
</body>
|
| 127 |
</html>
|