Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Neural Nexus - AI Connection Hub</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 0.6; } | |
| 50% { opacity: 1; } | |
| } | |
| .ai-node { | |
| position: relative; | |
| transition: all 0.3s ease; | |
| } | |
| .ai-node:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5); | |
| } | |
| .connection-line { | |
| position: absolute; | |
| background: linear-gradient(90deg, #3b82f6, #8b5cf6); | |
| height: 2px; | |
| transform-origin: left; | |
| z-index: -1; | |
| } | |
| .message-ai { | |
| background: linear-gradient(135deg, #1e293b, #0f172a); | |
| border-left: 3px solid #3b82f6; | |
| } | |
| .message-user { | |
| background: linear-gradient(135deg, #1e293b, #0f172a); | |
| border-left: 3px solid #10b981; | |
| } | |
| .typing-indicator span { | |
| animation: pulse 1.5s infinite ease-in-out; | |
| } | |
| .typing-indicator span:nth-child(2) { | |
| animation-delay: 0.2s; | |
| } | |
| .typing-indicator span:nth-child(3) { | |
| animation-delay: 0.4s; | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #0f172a, #1e1b4b); | |
| } | |
| .neon-border { | |
| border: 1px solid transparent; | |
| background-clip: padding-box; | |
| position: relative; | |
| } | |
| .neon-border::after { | |
| content: ''; | |
| position: absolute; | |
| top: -2px; left: -2px; | |
| right: -2px; bottom: -2px; | |
| background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899); | |
| z-index: -1; | |
| border-radius: inherit; | |
| opacity: 0.7; | |
| } | |
| </style> | |
| </head> | |
| <body class="gradient-bg min-h-screen text-gray-100 font-sans"> | |
| <div class="container mx-auto px-4 py-8"> | |
| <!-- Header --> | |
| <header class="flex justify-between items-center mb-8"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center"> | |
| <i class="fas fa-brain text-xl"></i> | |
| </div> | |
| <h1 class="text-2xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-blue-400 to-purple-500"> | |
| Neural Nexus | |
| </h1> | |
| </div> | |
| <div class="flex space-x-4"> | |
| <button class="px-4 py-2 rounded-full bg-indigo-700 hover:bg-indigo-600 transition flex items-center space-x-2"> | |
| <i class="fas fa-cog"></i> | |
| <span>Settings</span> | |
| </button> | |
| <button class="px-4 py-2 rounded-full bg-emerald-700 hover:bg-emerald-600 transition flex items-center space-x-2"> | |
| <i class="fas fa-plus"></i> | |
| <span>New Session</span> | |
| </button> | |
| </div> | |
| </header> | |
| <div class="grid grid-cols-1 lg:grid-cols-4 gap-6"> | |
| <!-- AI Connection Panel --> | |
| <div class="lg:col-span-1 space-y-6"> | |
| <div class="bg-gray-800/50 backdrop-blur-sm rounded-xl p-6 neon-border"> | |
| <h2 class="text-lg font-semibold mb-4 flex items-center"> | |
| <i class="fas fa-plug mr-2 text-blue-400"></i> | |
| Connected AIs | |
| </h2> | |
| <div class="space-y-3"> | |
| <div class="ai-node bg-gray-800 p-4 rounded-lg flex items-center space-x-3 cursor-pointer"> | |
| <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center"> | |
| <i class="fab fa-google text-xs"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-medium">Gemini Pro</h3> | |
| <p class="text-xs text-gray-400">Google</p> | |
| </div> | |
| <div class="ml-auto w-2 h-2 rounded-full bg-green-500 animate-pulse"></div> | |
| </div> | |
| <div class="ai-node bg-gray-800 p-4 rounded-lg flex items-center space-x-3 cursor-pointer"> | |
| <div class="w-8 h-8 rounded-full bg-purple-500 flex items-center justify-center"> | |
| <i class="fas fa-robot text-xs"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-medium">GPT-4 Turbo</h3> | |
| <p class="text-xs text-gray-400">OpenAI</p> | |
| </div> | |
| </div> | |
| <div class="ai-node bg-gray-800 p-4 rounded-lg flex items-center space-x-3 cursor-pointer"> | |
| <div class="w-8 h-8 rounded-full bg-yellow-500 flex items-center justify-center"> | |
| <i class="fas fa-fire text-xs"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-medium">Claude 3</h3> | |
| <p class="text-xs text-gray-400">Anthropic</p> | |
| </div> | |
| </div> | |
| <div class="ai-node bg-gray-800 p-4 rounded-lg flex items-center space-x-3 cursor-pointer"> | |
| <div class="w-8 h-8 rounded-full bg-red-500 flex items-center justify-center"> | |
| <i class="fas fa-code text-xs"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-medium">Llama 3</h3> | |
| <p class="text-xs text-gray-400">Meta</p> | |
| </div> | |
| </div> | |
| </div> | |
| <button class="mt-4 w-full py-2 rounded-lg bg-gray-700 hover:bg-gray-600 transition flex items-center justify-center space-x-2"> | |
| <i class="fas fa-plus"></i> | |
| <span>Connect AI</span> | |
| </button> | |
| </div> | |
| <div class="bg-gray-800/50 backdrop-blur-sm rounded-xl p-6 neon-border"> | |
| <h2 class="text-lg font-semibold mb-4 flex items-center"> | |
| <i class="fas fa-project-diagram mr-2 text-purple-400"></i> | |
| Connection Graph | |
| </h2> | |
| <div class="relative h-64"> | |
| <div class="absolute inset-0 flex items-center justify-center"> | |
| <div class="w-16 h-16 rounded-full bg-blue-500/20 border-2 border-blue-400 flex items-center justify-center"> | |
| <i class="fas fa-user text-blue-400"></i> | |
| </div> | |
| </div> | |
| <div class="connection-line" style="width: 100px; top: 50%; left: 50%; transform: rotate(30deg);"></div> | |
| <div class="ai-node absolute top-10 left-20 w-12 h-12 rounded-full bg-purple-500 flex items-center justify-center"> | |
| <i class="fas fa-robot"></i> | |
| </div> | |
| <div class="ai-node absolute top-10 right-20 w-12 h-12 rounded-full bg-blue-500 flex items-center justify-center"> | |
| <i class="fab fa-google"></i> | |
| </div> | |
| <div class="ai-node absolute bottom-10 left-20 w-12 h-12 rounded-full bg-yellow-500 flex items-center justify-center"> | |
| <i class="fas fa-fire"></i> | |
| </div> | |
| <div class="ai-node absolute bottom-10 right-20 w-12 h-12 rounded-full bg-red-500 flex items-center justify-center"> | |
| <i class="fas fa-code"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Chat and Training Area --> | |
| <div class="lg:col-span-3 space-y-6"> | |
| <div class="bg-gray-800/50 backdrop-blur-sm rounded-xl p-6 neon-border h-[70vh] flex flex-col"> | |
| <div class="flex items-center justify-between mb-6"> | |
| <h2 class="text-lg font-semibold flex items-center"> | |
| <i class="fas fa-comments mr-2 text-emerald-400"></i> | |
| Multi-AI Conversation | |
| </h2> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 rounded-lg bg-gray-700 hover:bg-gray-600 transition"> | |
| <i class="fas fa-save"></i> | |
| </button> | |
| <button class="px-3 py-1 rounded-lg bg-gray-700 hover:bg-gray-600 transition"> | |
| <i class="fas fa-share-alt"></i> | |
| </button> | |
| <button class="px-3 py-1 rounded-lg bg-gray-700 hover:bg-gray-600 transition"> | |
| <i class="fas fa-ellipsis-h"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Chat Messages --> | |
| <div class="flex-1 overflow-y-auto space-y-4 pr-2" id="chat-messages"> | |
| <div class="message-ai p-4 rounded-lg"> | |
| <div class="flex items-start space-x-3"> | |
| <div class="w-8 h-8 rounded-full bg-purple-500 flex items-center justify-center"> | |
| <i class="fas fa-robot text-sm"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium text-purple-400">GPT-4 Turbo</p> | |
| <p class="mt-1">Hello! I'm GPT-4 Turbo. How can I assist you with your multi-AI collaboration today?</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="message-user p-4 rounded-lg"> | |
| <div class="flex items-start space-x-3"> | |
| <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center"> | |
| <i class="fas fa-user text-sm"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium text-blue-400">You</p> | |
| <p class="mt-1">I'd like to create a connection between you and Gemini Pro to work on a code generation task.</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="message-ai p-4 rounded-lg"> | |
| <div class="flex items-start space-x-3"> | |
| <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center"> | |
| <i class="fab fa-google text-sm"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium text-blue-400">Gemini Pro</p> | |
| <p class="mt-1">I've established a connection with GPT-4 Turbo. Ready to collaborate on the code generation. What specific requirements do you have?</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="typing-indicator p-4 rounded-lg bg-gray-800/50 w-max"> | |
| <div class="flex space-x-1"> | |
| <span class="w-2 h-2 rounded-full bg-gray-400"></span> | |
| <span class="w-2 h-2 rounded-full bg-gray-400"></span> | |
| <span class="w-2 h-2 rounded-full bg-gray-400"></span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Input Area --> | |
| <div class="mt-6"> | |
| <div class="flex space-x-3"> | |
| <div class="flex-1 relative"> | |
| <textarea | |
| class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 pr-12 focus:outline-none focus:ring-2 focus:ring-indigo-500 resize-none" | |
| rows="2" | |
| placeholder="Message your AI network..."></textarea> | |
| <div class="absolute right-3 bottom-3 flex space-x-2"> | |
| <button class="text-gray-400 hover:text-gray-200"> | |
| <i class="fas fa-paperclip"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-gray-200"> | |
| <i class="fas fa-code"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <button class="self-end px-4 py-3 rounded-lg bg-indigo-600 hover:bg-indigo-500 transition"> | |
| <i class="fas fa-paper-plane"></i> | |
| </button> | |
| </div> | |
| <div class="flex justify-between items-center mt-2 text-xs text-gray-400"> | |
| <div class="flex space-x-2"> | |
| <button class="px-2 py-1 rounded bg-gray-800 hover:bg-gray-700"> | |
| <i class="fas fa-magic mr-1"></i> Enhance | |
| </button> | |
| <button class="px-2 py-1 rounded bg-gray-800 hover:bg-gray-700"> | |
| <i class="fas fa-brain mr-1"></i> Train | |
| </button> | |
| </div> | |
| <div> | |
| <span>0/4000 tokens</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Training Panel --> | |
| <div class="bg-gray-800/50 backdrop-blur-sm rounded-xl p-6 neon-border"> | |
| <h2 class="text-lg font-semibold mb-4 flex items-center"> | |
| <i class="fas fa-graduation-cap mr-2 text-yellow-400"></i> | |
| AI Training Module | |
| </h2> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4"> | |
| <div class="col-span-2"> | |
| <div class="bg-gray-800 rounded-lg p-4 h-full"> | |
| <h3 class="font-medium mb-3">Training Data</h3> | |
| <textarea | |
| class="w-full bg-gray-900 border border-gray-700 rounded-lg px-4 py-3 h-40 focus:outline-none focus:ring-2 focus:ring-yellow-500 resize-none" | |
| placeholder="Paste your training data here..."></textarea> | |
| <div class="flex justify-between mt-3"> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 rounded bg-gray-700 hover:bg-gray-600"> | |
| <i class="fas fa-upload mr-1"></i> Import | |
| </button> | |
| <button class="px-3 py-1 rounded bg-gray-700 hover:bg-gray-600"> | |
| <i class="fas fa-trash mr-1"></i> Clear | |
| </button> | |
| </div> | |
| <div class="text-xs text-gray-400"> | |
| <span>0/10000 tokens</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="bg-gray-800 rounded-lg p-4 h-full"> | |
| <h3 class="font-medium mb-3">Training Parameters</h3> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block text-sm text-gray-400 mb-1">Learning Rate</label> | |
| <input type="range" min="0" max="1" step="0.01" value="0.001" class="w-full"> | |
| <div class="flex justify-between text-xs text-gray-400"> | |
| <span>0</span> | |
| <span>0.001</span> | |
| <span>1</span> | |
| </div> | |
| </div> | |
| <div> | |
| <label class="block text-sm text-gray-400 mb-1">Epochs</label> | |
| <input type="number" value="5" class="w-full bg-gray-900 border border-gray-700 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-yellow-500"> | |
| </div> | |
| <div> | |
| <label class="block text-sm text-gray-400 mb-1">Batch Size</label> | |
| <select class="w-full bg-gray-900 border border-gray-700 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-yellow-500"> | |
| <option>16</option> | |
| <option>32</option> | |
| <option selected>64</option> | |
| <option>128</option> | |
| </select> | |
| </div> | |
| <button class="w-full py-2 rounded-lg bg-yellow-600 hover:bg-yellow-500 transition font-medium"> | |
| <i class="fas fa-play mr-2"></i> Start Training | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Simple script to handle sending messages | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const chatMessages = document.getElementById('chat-messages'); | |
| const messageInput = document.querySelector('textarea'); | |
| const sendButton = document.querySelector('.fa-paper-plane').parentElement; | |
| // Function to add a new message | |
| function addMessage(content, isUser = false) { | |
| const messageDiv = document.createElement('div'); | |
| messageDiv.className = isUser ? 'message-user p-4 rounded-lg' : 'message-ai p-4 rounded-lg'; | |
| const aiIcon = isUser ? 'fa-user' : 'fa-robot'; | |
| const aiColor = isUser ? 'bg-blue-500' : 'bg-purple-500'; | |
| const aiName = isUser ? 'You' : 'GPT-4 Turbo'; | |
| const nameColor = isUser ? 'text-blue-400' : 'text-purple-400'; | |
| messageDiv.innerHTML = ` | |
| <div class="flex items-start space-x-3"> | |
| <div class="w-8 h-8 rounded-full ${aiColor} flex items-center justify-center"> | |
| <i class="fas ${aiIcon} text-sm"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium ${nameColor}">${aiName}</p> | |
| <p class="mt-1">${content}</p> | |
| </div> | |
| </div> | |
| `; | |
| // Remove typing indicator | |
| const typingIndicator = document.querySelector('.typing-indicator'); | |
| if (typingIndicator) { | |
| typingIndicator.remove(); | |
| } | |
| chatMessages.appendChild(messageDiv); | |
| chatMessages.scrollTop = chatMessages.scrollHeight; | |
| // Add AI response after a delay if it's a user message | |
| if (isUser) { | |
| const typingDiv = document.createElement('div'); | |
| typingDiv.className = 'typing-indicator p-4 rounded-lg bg-gray-800/50 w-max'; | |
| typingDiv.innerHTML = ` | |
| <div class="flex space-x-1"> | |
| <span class="w-2 h-2 rounded-full bg-gray-400"></span> | |
| <span class="w-2 h-2 rounded-full bg-gray-400"></span> | |
| <span class="w-2 h-2 rounded-full bg-gray-400"></span> | |
| </div> | |
| `; | |
| chatMessages.appendChild(typingDiv); | |
| chatMessages.scrollTop = chatMessages.scrollHeight; | |
| setTimeout(() => { | |
| const responses = [ | |
| "I've processed your request. Would you like me to connect with Gemini Pro for collaborative analysis?", | |
| "Interesting perspective. I can enhance this with additional context from my training data.", | |
| "I've generated a response based on our previous interactions. Let me know if you'd like any modifications.", | |
| "Working on that now. Connecting to external knowledge bases for more comprehensive information." | |
| ]; | |
| const randomResponse = responses[Math.floor(Math.random() * responses.length)]; | |
| addMessage(randomResponse, false); | |
| }, 2000); | |
| } | |
| } | |
| // Send message on button click | |
| sendButton.addEventListener('click', function() { | |
| const message = messageInput.value.trim(); | |
| if (message) { | |
| addMessage(message, true); | |
| messageInput.value = ''; | |
| } | |
| }); | |
| // Send message on Enter key (but allow Shift+Enter for new lines) | |
| messageInput.addEventListener('keydown', function(e) { | |
| if (e.key === 'Enter' && !e.shiftKey) { | |
| e.preventDefault(); | |
| sendButton.click(); | |
| } | |
| }); | |
| // Make AI nodes clickable | |
| document.querySelectorAll('.ai-node').forEach(node => { | |
| node.addEventListener('click', function() { | |
| // Remove active class from all nodes | |
| document.querySelectorAll('.ai-node').forEach(n => { | |
| n.classList.remove('ring-2', 'ring-blue-400'); | |
| }); | |
| // Add active class to clicked node | |
| this.classList.add('ring-2', 'ring-blue-400'); | |
| // In a real app, this would switch the active AI | |
| const aiName = this.querySelector('h3').textContent; | |
| addMessage(`${aiName} is now active and ready for interaction.`, false); | |
| }); | |
| }); | |
| }); | |
| </script> | |
| <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=iyc/my-ai-prototype" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |