Add 2 files
Browse files- README.md +7 -5
- index.html +253 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 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: aig
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: green
|
| 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,253 @@
|
|
| 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="fr">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Assistant IA | Hugging Face</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 |
+
@keyframes float {
|
| 11 |
+
0%, 100% { transform: translateY(0); }
|
| 12 |
+
50% { transform: translateY(-10px); }
|
| 13 |
+
}
|
| 14 |
+
.floating {
|
| 15 |
+
animation: float 3s ease-in-out infinite;
|
| 16 |
+
}
|
| 17 |
+
.gradient-bg {
|
| 18 |
+
background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
|
| 19 |
+
}
|
| 20 |
+
.message-entering {
|
| 21 |
+
animation: messageEnter 0.3s ease-out forwards;
|
| 22 |
+
}
|
| 23 |
+
@keyframes messageEnter {
|
| 24 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 25 |
+
to { opacity: 1; transform: translateY(0); }
|
| 26 |
+
}
|
| 27 |
+
</style>
|
| 28 |
+
</head>
|
| 29 |
+
<body class="bg-gray-50 min-h-screen flex flex-col">
|
| 30 |
+
<!-- Header -->
|
| 31 |
+
<header class="gradient-bg text-white shadow-lg">
|
| 32 |
+
<div class="container mx-auto px-4 py-6">
|
| 33 |
+
<div class="flex justify-between items-center">
|
| 34 |
+
<div class="flex items-center space-x-3">
|
| 35 |
+
<i class="fas fa-robot text-3xl"></i>
|
| 36 |
+
<h1 class="text-2xl font-bold">Assistant IA</h1>
|
| 37 |
+
</div>
|
| 38 |
+
<div class="flex items-center space-x-4">
|
| 39 |
+
<span class="hidden md:inline-block px-3 py-1 bg-white bg-opacity-20 rounded-full text-sm">Hugging Face Space</span>
|
| 40 |
+
<button class="px-4 py-2 bg-white text-purple-600 rounded-full font-semibold hover:bg-gray-100 transition">
|
| 41 |
+
<i class="fas fa-rocket mr-2"></i>Déployer
|
| 42 |
+
</button>
|
| 43 |
+
</div>
|
| 44 |
+
</div>
|
| 45 |
+
</div>
|
| 46 |
+
</header>
|
| 47 |
+
|
| 48 |
+
<!-- Main Content -->
|
| 49 |
+
<main class="flex-grow container mx-auto px-4 py-8 flex flex-col md:flex-row">
|
| 50 |
+
<!-- Presentation Section -->
|
| 51 |
+
<div class="md:w-1/3 lg:w-1/4 mb-8 md:mb-0 md:pr-8">
|
| 52 |
+
<div class="bg-white rounded-xl shadow-md p-6 sticky top-8">
|
| 53 |
+
<div class="text-center mb-6">
|
| 54 |
+
<div class="floating inline-block mb-4">
|
| 55 |
+
<div class="w-32 h-32 rounded-full gradient-bg flex items-center justify-center mx-auto">
|
| 56 |
+
<i class="fas fa-robot text-white text-5xl"></i>
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
<h2 class="text-xl font-bold text-gray-800">Assistant IA</h2>
|
| 60 |
+
<p class="text-purple-600 font-medium">Spécialiste en développement</p>
|
| 61 |
+
</div>
|
| 62 |
+
|
| 63 |
+
<div class="space-y-4">
|
| 64 |
+
<div class="flex items-start space-x-3">
|
| 65 |
+
<i class="fas fa-info-circle text-purple-500 mt-1"></i>
|
| 66 |
+
<div>
|
| 67 |
+
<h3 class="font-semibold text-gray-700">À propos</h3>
|
| 68 |
+
<p class="text-gray-600 text-sm">Assistant IA spécialisé dans le développement web et le déploiement sur Hugging Face Spaces.</p>
|
| 69 |
+
</div>
|
| 70 |
+
</div>
|
| 71 |
+
|
| 72 |
+
<div class="flex items-start space-x-3">
|
| 73 |
+
<i class="fas fa-cogs text-purple-500 mt-1"></i>
|
| 74 |
+
<div>
|
| 75 |
+
<h3 class="font-semibold text-gray-700">Capacités</h3>
|
| 76 |
+
<ul class="text-gray-600 text-sm list-disc pl-4 space-y-1">
|
| 77 |
+
<li>Création d'interfaces HTML/CSS/JS</li>
|
| 78 |
+
<li>Intégration avec Hugging Face</li>
|
| 79 |
+
<li>Conseils en déploiement</li>
|
| 80 |
+
<li>Optimisation UI/UX</li>
|
| 81 |
+
</ul>
|
| 82 |
+
</div>
|
| 83 |
+
</div>
|
| 84 |
+
|
| 85 |
+
<div class="flex items-start space-x-3">
|
| 86 |
+
<i class="fas fa-bolt text-purple-500 mt-1"></i>
|
| 87 |
+
<div>
|
| 88 |
+
<h3 class="font-semibold text-gray-700">Technologies</h3>
|
| 89 |
+
<div class="flex flex-wrap gap-2 mt-1">
|
| 90 |
+
<span class="px-2 py-1 bg-purple-100 text-purple-800 rounded-full text-xs">HTML5</span>
|
| 91 |
+
<span class="px-2 py-1 bg-purple-100 text-purple-800 rounded-full text-xs">CSS3</span>
|
| 92 |
+
<span class="px-2 py-1 bg-purple-100 text-purple-800 rounded-full text-xs">JavaScript</span>
|
| 93 |
+
<span class="px-2 py-1 bg-purple-100 text-purple-800 rounded-full text-xs">Tailwind</span>
|
| 94 |
+
<span class="px-2 py-1 bg-purple-100 text-purple-800 rounded-full text-xs">Hugging Face</span>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
|
| 102 |
+
<!-- Chat Section -->
|
| 103 |
+
<div class="md:w-2/3 lg:w-3/4 bg-white rounded-xl shadow-md overflow-hidden flex flex-col">
|
| 104 |
+
<div class="p-6 border-b">
|
| 105 |
+
<h2 class="text-xl font-bold text-gray-800">Conversation</h2>
|
| 106 |
+
<p class="text-gray-600 text-sm">Posez-moi vos questions sur le déploiement Hugging Face</p>
|
| 107 |
+
</div>
|
| 108 |
+
|
| 109 |
+
<div id="chat-container" class="flex-grow p-4 overflow-y-auto bg-gray-50" style="min-height: 300px;">
|
| 110 |
+
<!-- Messages will appear here -->
|
| 111 |
+
<div id="welcome-message" class="message-entering">
|
| 112 |
+
<div class="flex mb-4">
|
| 113 |
+
<div class="w-10 h-10 rounded-full gradient-bg flex items-center justify-center mr-3">
|
| 114 |
+
<i class="fas fa-robot text-white"></i>
|
| 115 |
+
</div>
|
| 116 |
+
<div class="max-w-3/4">
|
| 117 |
+
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200">
|
| 118 |
+
<p class="text-gray-800">Bonjour ! 👋 Je suis un assistant IA spécialisé dans le développement web et le déploiement sur Hugging Face Spaces.</p>
|
| 119 |
+
<p class="text-gray-800 mt-2">Comme vous l'avez découvert, je peux être déployé directement dans un Space Hugging Face pour créer des applications interactives d'IA.</p>
|
| 120 |
+
<div class="mt-4 p-3 bg-purple-50 rounded-lg border border-purple-100">
|
| 121 |
+
<h4 class="font-semibold text-purple-800 mb-2">Ce que je peux faire pour vous :</h4>
|
| 122 |
+
<ul class="list-disc pl-5 space-y-1 text-sm text-purple-700">
|
| 123 |
+
<li>Créer des interfaces web élégantes avec HTML/CSS/JS</li>
|
| 124 |
+
<li>Vous aider à déployer des applications sur Hugging Face</li>
|
| 125 |
+
<li>Concevoir des démonstrations interactives d'IA</li>
|
| 126 |
+
<li>Optimiser l'expérience utilisateur de vos projets</li>
|
| 127 |
+
</ul>
|
| 128 |
+
</div>
|
| 129 |
+
<p class="text-gray-800 mt-4">Comment puis-je vous aider aujourd'hui ? 😊</p>
|
| 130 |
+
</div>
|
| 131 |
+
<div class="text-xs text-gray-500 mt-1 ml-1">Aujourd'hui à <span id="current-time"></span></div>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
|
| 137 |
+
<div class="p-4 border-t bg-white">
|
| 138 |
+
<div class="flex space-x-2">
|
| 139 |
+
<input type="text" id="user-input" placeholder="Écrivez votre message..." class="flex-grow px-4 py-2 border rounded-full focus:outline-none focus:ring-2 focus:ring-purple-300">
|
| 140 |
+
<button id="send-btn" class="w-12 h-12 rounded-full gradient-bg text-white flex items-center justify-center hover:opacity-90 transition">
|
| 141 |
+
<i class="fas fa-paper-plane"></i>
|
| 142 |
+
</button>
|
| 143 |
+
</div>
|
| 144 |
+
<div class="flex justify-center mt-3 space-x-4">
|
| 145 |
+
<button class="text-xs text-purple-600 hover:text-purple-800 flex items-center">
|
| 146 |
+
<i class="fas fa-lightbulb mr-1"></i> Suggestions
|
| 147 |
+
</button>
|
| 148 |
+
<button class="text-xs text-purple-600 hover:text-purple-800 flex items-center">
|
| 149 |
+
<i class="fas fa-trash-alt mr-1"></i> Effacer
|
| 150 |
+
</button>
|
| 151 |
+
</div>
|
| 152 |
+
</div>
|
| 153 |
+
</div>
|
| 154 |
+
</main>
|
| 155 |
+
|
| 156 |
+
<!-- Footer -->
|
| 157 |
+
<footer class="bg-gray-800 text-white py-6">
|
| 158 |
+
<div class="container mx-auto px-4">
|
| 159 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
| 160 |
+
<div class="mb-4 md:mb-0">
|
| 161 |
+
<div class="flex items-center space-x-2">
|
| 162 |
+
<i class="fas fa-robot text-xl"></i>
|
| 163 |
+
<span class="font-bold">Assistant IA</span>
|
| 164 |
+
</div>
|
| 165 |
+
<p class="text-gray-400 text-sm mt-1">Déployé sur Hugging Face Spaces</p>
|
| 166 |
+
</div>
|
| 167 |
+
<div class="flex space-x-6">
|
| 168 |
+
<a href="#" class="text-gray-400 hover:text-white transition">
|
| 169 |
+
<i class="fab fa-github text-xl"></i>
|
| 170 |
+
</a>
|
| 171 |
+
<a href="#" class="text-gray-400 hover:text-white transition">
|
| 172 |
+
<i class="fab fa-twitter text-xl"></i>
|
| 173 |
+
</a>
|
| 174 |
+
<a href="#" class="text-gray-400 hover:text-white transition">
|
| 175 |
+
<i class="fab fa-discord text-xl"></i>
|
| 176 |
+
</a>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
<div class="mt-6 pt-4 border-t border-gray-700 text-center text-gray-400 text-sm">
|
| 180 |
+
<p>© 2023 Assistant IA. Tous droits réservés.</p>
|
| 181 |
+
</div>
|
| 182 |
+
</div>
|
| 183 |
+
</footer>
|
| 184 |
+
|
| 185 |
+
<script>
|
| 186 |
+
// Set current time
|
| 187 |
+
const now = new Date();
|
| 188 |
+
const timeString = now.toLocaleTimeString('fr-FR', { hour: '2-digit', minute: '2-digit' });
|
| 189 |
+
document.getElementById('current-time').textContent = timeString;
|
| 190 |
+
|
| 191 |
+
// Simple chat interaction
|
| 192 |
+
document.getElementById('send-btn').addEventListener('click', sendMessage);
|
| 193 |
+
document.getElementById('user-input').addEventListener('keypress', function(e) {
|
| 194 |
+
if (e.key === 'Enter') sendMessage();
|
| 195 |
+
});
|
| 196 |
+
|
| 197 |
+
function sendMessage() {
|
| 198 |
+
const userInput = document.getElementById('user-input');
|
| 199 |
+
const message = userInput.value.trim();
|
| 200 |
+
|
| 201 |
+
if (message) {
|
| 202 |
+
// Add user message
|
| 203 |
+
addMessage(message, 'user');
|
| 204 |
+
userInput.value = '';
|
| 205 |
+
|
| 206 |
+
// Simulate AI response after a short delay
|
| 207 |
+
setTimeout(() => {
|
| 208 |
+
const responses = [
|
| 209 |
+
"Je comprends votre demande concernant le déploiement sur Hugging Face. Pouvez-vous préciser quels aspects vous intéressent particulièrement ?",
|
| 210 |
+
"Le déploiement sur Hugging Face Spaces est effectivement très simple. Il suffit de créer un nouveau Space et d'y ajouter votre code.",
|
| 211 |
+
"Pour une interface comme celle-ci, vous auriez besoin de créer un fichier HTML avec le code que vous voyez, puis de le déployer dans un Space de type 'Static'.",
|
| 212 |
+
"Je peux vous guider étape par étape pour créer et déployer votre propre application. Qu'aimeriez-vous savoir en particulier ?"
|
| 213 |
+
];
|
| 214 |
+
const randomResponse = responses[Math.floor(Math.random() * responses.length)];
|
| 215 |
+
addMessage(randomResponse, 'ai');
|
| 216 |
+
}, 1000 + Math.random() * 2000);
|
| 217 |
+
}
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
function addMessage(text, sender) {
|
| 221 |
+
const chatContainer = document.getElementById('chat-container');
|
| 222 |
+
const now = new Date();
|
| 223 |
+
const timeString = now.toLocaleTimeString('fr-FR', { hour: '2-digit', minute: '2-digit' });
|
| 224 |
+
|
| 225 |
+
const messageDiv = document.createElement('div');
|
| 226 |
+
messageDiv.className = 'message-entering';
|
| 227 |
+
messageDiv.innerHTML = `
|
| 228 |
+
<div class="flex mb-4 ${sender === 'user' ? 'justify-end' : ''}">
|
| 229 |
+
${sender === 'ai' ? `
|
| 230 |
+
<div class="w-10 h-10 rounded-full gradient-bg flex items-center justify-center mr-3">
|
| 231 |
+
<i class="fas fa-robot text-white"></i>
|
| 232 |
+
</div>
|
| 233 |
+
` : ''}
|
| 234 |
+
<div class="max-w-3/4">
|
| 235 |
+
<div class="${sender === 'ai' ? 'bg-white' : 'gradient-bg text-white'} p-4 rounded-lg shadow-sm ${sender === 'ai' ? 'border border-gray-200' : ''}">
|
| 236 |
+
<p>${text}</p>
|
| 237 |
+
</div>
|
| 238 |
+
<div class="text-xs text-gray-500 mt-1 ${sender === 'ai' ? 'ml-1' : 'mr-1 text-right'}">Aujourd'hui à ${timeString}</div>
|
| 239 |
+
</div>
|
| 240 |
+
${sender === 'user' ? `
|
| 241 |
+
<div class="w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center ml-3">
|
| 242 |
+
<i class="fas fa-user text-gray-600"></i>
|
| 243 |
+
</div>
|
| 244 |
+
` : ''}
|
| 245 |
+
</div>
|
| 246 |
+
`;
|
| 247 |
+
|
| 248 |
+
chatContainer.appendChild(messageDiv);
|
| 249 |
+
chatContainer.scrollTop = chatContainer.scrollHeight;
|
| 250 |
+
}
|
| 251 |
+
</script>
|
| 252 |
+
<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=Teleadmin/aig" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 253 |
+
</html>
|