Spaces:
Running
Running
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Neural Network Catalog</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> | |
.gradient-bg { | |
background: linear-gradient(135deg, #6e8efb, #a777e3); | |
} | |
.network-card:hover { | |
transform: translateY(-5px); | |
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
} | |
.network-card { | |
transition: all 0.3s ease; | |
} | |
.tag { | |
transition: all 0.2s ease; | |
} | |
.tag:hover { | |
transform: scale(1.05); | |
} | |
.search-input:focus { | |
box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.3); | |
} | |
.type-filter.active { | |
background-color: #6e8efb; | |
color: white; | |
} | |
</style> | |
</head> | |
<body class="bg-gray-50 min-h-screen"> | |
<!-- Header --> | |
<header class="gradient-bg text-white shadow-lg"> | |
<div class="container mx-auto px-4 py-6"> | |
<div class="flex justify-between items-center"> | |
<div class="flex items-center space-x-2"> | |
<i class="fas fa-brain text-3xl"></i> | |
<h1 class="text-2xl font-bold">Neural Network Catalog</h1> | |
</div> | |
<div class="hidden md:flex space-x-4"> | |
<a href="#" class="hover:underline">Home</a> | |
<a href="#" class="hover:underline">About</a> | |
<a href="#" class="hover:underline">Contribute</a> | |
</div> | |
<button class="md:hidden text-2xl"> | |
<i class="fas fa-bars"></i> | |
</button> | |
</div> | |
</div> | |
</header> | |
<!-- Hero Section --> | |
<section class="gradient-bg text-white py-16"> | |
<div class="container mx-auto px-4 text-center"> | |
<h2 class="text-4xl font-bold mb-4">Explore Powerful Neural Networks</h2> | |
<p class="text-xl mb-8 max-w-2xl mx-auto">Discover, compare, and implement state-of-the-art neural network architectures for your projects.</p> | |
<div class="max-w-2xl mx-auto relative"> | |
<input type="text" placeholder="Search for networks (e.g., CNN, Transformer, GAN...)" | |
class="w-full px-6 py-4 rounded-full text-gray-800 focus:outline-none search-input"> | |
<button class="absolute right-2 top-2 bg-blue-600 text-white px-4 py-2 rounded-full hover:bg-blue-700"> | |
<i class="fas fa-search"></i> | |
</button> | |
</div> | |
</div> | |
</section> | |
<!-- Main Content --> | |
<main class="container mx-auto px-4 py-12"> | |
<!-- Filters --> | |
<div class="mb-8"> | |
<div class="flex flex-wrap justify-between items-center mb-6"> | |
<h3 class="text-2xl font-semibold text-gray-800">Featured Networks</h3> | |
<div class="flex space-x-2"> | |
<button class="px-3 py-1 bg-gray-200 rounded-full text-sm type-filter active" data-type="all">All</button> | |
<button class="px-3 py-1 bg-gray-200 rounded-full text-sm type-filter" data-type="vision">Vision</button> | |
<button class="px-3 py-1 bg-gray-200 rounded-full text-sm type-filter" data-type="nlp">NLP</button> | |
<button class="px-3 py-1 bg-gray-200 rounded-full text-sm type-filter" data-type="generative">Generative</button> | |
<button class="px-3 py-1 bg-gray-200 rounded-full text-sm type-filter" data-type="other">Other</button> | |
</div> | |
</div> | |
</div> | |
<!-- Network Grid --> | |
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" id="network-grid"> | |
<!-- Network cards will be inserted here by JavaScript --> | |
</div> | |
<!-- Load More Button --> | |
<div class="text-center mt-12"> | |
<button class="px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition" id="load-more"> | |
Load More Networks | |
</button> | |
</div> | |
</main> | |
<!-- Footer --> | |
<footer class="bg-gray-800 text-white py-12"> | |
<div class="container mx-auto px-4"> | |
<div class="grid grid-cols-1 md:grid-cols-3 gap-8"> | |
<div> | |
<h4 class="text-xl font-semibold mb-4">Neural Network Catalog</h4> | |
<p class="text-gray-400">Your one-stop resource for discovering and implementing neural networks.</p> | |
</div> | |
<div> | |
<h4 class="text-xl font-semibold mb-4">Quick Links</h4> | |
<ul class="space-y-2"> | |
<li><a href="#" class="text-gray-400 hover:text-white">Documentation</a></li> | |
<li><a href="#" class="text-gray-400 hover:text-white">API Reference</a></li> | |
<li><a href="#" class="text-gray-400 hover:text-white">GitHub</a></li> | |
</ul> | |
</div> | |
<div> | |
<h4 class="text-xl font-semibold mb-4">Connect</h4> | |
<div class="flex space-x-4"> | |
<a href="#" class="text-gray-400 hover:text-white text-2xl"><i class="fab fa-twitter"></i></a> | |
<a href="#" class="text-gray-400 hover:text-white text-2xl"><i class="fab fa-github"></i></a> | |
<a href="#" class="text-gray-400 hover:text-white text-2xl"><i class="fab fa-discord"></i></a> | |
</div> | |
</div> | |
</div> | |
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400"> | |
<p>© 2023 Neural Network Catalog. All rights reserved.</p> | |
</div> | |
</div> | |
</footer> | |
<!-- JavaScript --> | |
<script> | |
// Sample network data | |
const networks = [ | |
{ | |
id: 1, | |
name: "ResNet-50", | |
type: "vision", | |
description: "Deep residual network with 50 layers for image classification.", | |
tags: ["CNN", "ImageNet", "Classification"], | |
stars: 4.8, | |
implementations: ["PyTorch", "TensorFlow", "Keras"], | |
paper: "https://arxiv.org/abs/1512.03385" | |
}, | |
{ | |
id: 2, | |
name: "BERT", | |
type: "nlp", | |
description: "Bidirectional Encoder Representations from Transformers for natural language understanding.", | |
tags: ["Transformer", "NLP", "Pre-trained"], | |
stars: 4.9, | |
implementations: ["HuggingFace", "TensorFlow", "PyTorch"], | |
paper: "https://arxiv.org/abs/1810.04805" | |
}, | |
{ | |
id: 3, | |
name: "StyleGAN2", | |
type: "generative", | |
description: "Generative adversarial network for high-quality image generation with style control.", | |
tags: ["GAN", "Image Generation", "Style Transfer"], | |
stars: 4.7, | |
implementations: ["TensorFlow", "PyTorch"], | |
paper: "https://arxiv.org/abs/1912.04958" | |
}, | |
{ | |
id: 4, | |
name: "YOLOv5", | |
type: "vision", | |
description: "Real-time object detection system with high accuracy and speed.", | |
tags: ["Object Detection", "Real-time", "CNN"], | |
stars: 4.6, | |
implementations: ["PyTorch"], | |
paper: "https://arxiv.org/abs/1506.02640" | |
}, | |
{ | |
id: 5, | |
name: "GPT-3", | |
type: "nlp", | |
description: "Generative Pre-trained Transformer 3 for advanced language tasks.", | |
tags: ["Transformer", "Language Model", "OpenAI"], | |
stars: 4.9, | |
implementations: ["OpenAI API", "PyTorch"], | |
paper: "https://arxiv.org/abs/2005.14165" | |
}, | |
{ | |
id: 6, | |
name: "U-Net", | |
type: "vision", | |
description: "Convolutional network for biomedical image segmentation.", | |
tags: ["Segmentation", "Medical Imaging", "CNN"], | |
stars: 4.5, | |
implementations: ["TensorFlow", "PyTorch", "Keras"], | |
paper: "https://arxiv.org/abs/1505.04597" | |
} | |
]; | |
// Function to create network cards | |
function createNetworkCards(filterType = 'all') { | |
const grid = document.getElementById('network-grid'); | |
grid.innerHTML = ''; | |
const filteredNetworks = filterType === 'all' | |
? networks | |
: networks.filter(network => network.type === filterType); | |
filteredNetworks.forEach(network => { | |
const card = document.createElement('div'); | |
card.className = 'network-card bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl'; | |
card.innerHTML = ` | |
<div class="p-6"> | |
<div class="flex justify-between items-start mb-2"> | |
<h3 class="text-xl font-bold text-gray-800">${network.name}</h3> | |
<div class="flex items-center text-yellow-500"> | |
<i class="fas fa-star"></i> | |
<span class="ml-1 text-gray-700">${network.stars}</span> | |
</div> | |
</div> | |
<p class="text-gray-600 mb-4">${network.description}</p> | |
<div class="flex flex-wrap gap-2 mb-4"> | |
${network.tags.map(tag => `<span class="tag px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">${tag}</span>`).join('')} | |
</div> | |
<div class="mb-4"> | |
<h4 class="text-sm font-semibold text-gray-700 mb-1">Implementations:</h4> | |
<div class="flex flex-wrap gap-2"> | |
${network.implementations.map(impl => `<span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded">${impl}</span>`).join('')} | |
</div> | |
</div> | |
<div class="flex justify-between items-center"> | |
<a href="${network.paper}" target="_blank" class="text-blue-600 hover:underline text-sm"> | |
<i class="fas fa-file-alt mr-1"></i> Research Paper | |
</a> | |
<button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition text-sm"> | |
Try This Network | |
</button> | |
</div> | |
</div> | |
`; | |
grid.appendChild(card); | |
}); | |
} | |
// Initialize the page with all networks | |
document.addEventListener('DOMContentLoaded', () => { | |
createNetworkCards(); | |
// Filter buttons functionality | |
document.querySelectorAll('.type-filter').forEach(button => { | |
button.addEventListener('click', () => { | |
document.querySelectorAll('.type-filter').forEach(btn => btn.classList.remove('active')); | |
button.classList.add('active'); | |
const filterType = button.dataset.type; | |
createNetworkCards(filterType); | |
}); | |
}); | |
// Search functionality | |
document.querySelector('.search-input').addEventListener('input', (e) => { | |
const searchTerm = e.target.value.toLowerCase(); | |
const filtered = networks.filter(network => | |
network.name.toLowerCase().includes(searchTerm) || | |
network.description.toLowerCase().includes(searchTerm) || | |
network.tags.some(tag => tag.toLowerCase().includes(searchTerm)) | |
); | |
const grid = document.getElementById('network-grid'); | |
grid.innerHTML = ''; | |
filtered.forEach(network => { | |
const card = document.createElement('div'); | |
card.className = 'network-card bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl'; | |
card.innerHTML = ` | |
<div class="p-6"> | |
<div class="flex justify-between items-start mb-2"> | |
<h3 class="text-xl font-bold text-gray-800">${network.name}</h3> | |
<div class="flex items-center text-yellow-500"> | |
<i class="fas fa-star"></i> | |
<span class="ml-1 text-gray-700">${network.stars}</span> | |
</div> | |
</div> | |
<p class="text-gray-600 mb-4">${network.description}</p> | |
<div class="flex flex-wrap gap-2 mb-4"> | |
${network.tags.map(tag => `<span class="tag px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">${tag}</span>`).join('')} | |
</div> | |
<div class="mb-4"> | |
<h4 class="text-sm font-semibold text-gray-700 mb-1">Implementations:</h4> | |
<div class="flex flex-wrap gap-2"> | |
${network.implementations.map(impl => `<span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded">${impl}</span>`).join('')} | |
</div> | |
</div> | |
<div class="flex justify-between items-center"> | |
<a href="${network.paper}" target="_blank" class="text-blue-600 hover:underline text-sm"> | |
<i class="fas fa-file-alt mr-1"></i> Research Paper | |
</a> | |
<button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition text-sm"> | |
Try This Network | |
</button> | |
</div> | |
</div> | |
`; | |
grid.appendChild(card); | |
}); | |
}); | |
// Load more button functionality | |
document.getElementById('load-more').addEventListener('click', () => { | |
// In a real app, this would fetch more data from an API | |
alert('Loading more networks... This would fetch additional data in a production environment.'); | |
}); | |
}); | |
</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=adminSanderson/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
</html> |