adminSanderson commited on
Commit
5c0d66f
·
verified ·
1 Parent(s): 8279a17

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +312 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Test
3
- emoji: 🏢
4
- colorFrom: yellow
5
- colorTo: pink
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: test
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: gray
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,312 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
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>Neural Network Catalog</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
+ .gradient-bg {
11
+ background: linear-gradient(135deg, #6e8efb, #a777e3);
12
+ }
13
+ .network-card:hover {
14
+ transform: translateY(-5px);
15
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
16
+ }
17
+ .network-card {
18
+ transition: all 0.3s ease;
19
+ }
20
+ .tag {
21
+ transition: all 0.2s ease;
22
+ }
23
+ .tag:hover {
24
+ transform: scale(1.05);
25
+ }
26
+ .search-input:focus {
27
+ box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.3);
28
+ }
29
+ .type-filter.active {
30
+ background-color: #6e8efb;
31
+ color: white;
32
+ }
33
+ </style>
34
+ </head>
35
+ <body class="bg-gray-50 min-h-screen">
36
+ <!-- Header -->
37
+ <header class="gradient-bg text-white shadow-lg">
38
+ <div class="container mx-auto px-4 py-6">
39
+ <div class="flex justify-between items-center">
40
+ <div class="flex items-center space-x-2">
41
+ <i class="fas fa-brain text-3xl"></i>
42
+ <h1 class="text-2xl font-bold">Neural Network Catalog</h1>
43
+ </div>
44
+ <div class="hidden md:flex space-x-4">
45
+ <a href="#" class="hover:underline">Home</a>
46
+ <a href="#" class="hover:underline">About</a>
47
+ <a href="#" class="hover:underline">Contribute</a>
48
+ </div>
49
+ <button class="md:hidden text-2xl">
50
+ <i class="fas fa-bars"></i>
51
+ </button>
52
+ </div>
53
+ </div>
54
+ </header>
55
+
56
+ <!-- Hero Section -->
57
+ <section class="gradient-bg text-white py-16">
58
+ <div class="container mx-auto px-4 text-center">
59
+ <h2 class="text-4xl font-bold mb-4">Explore Powerful Neural Networks</h2>
60
+ <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>
61
+ <div class="max-w-2xl mx-auto relative">
62
+ <input type="text" placeholder="Search for networks (e.g., CNN, Transformer, GAN...)"
63
+ class="w-full px-6 py-4 rounded-full text-gray-800 focus:outline-none search-input">
64
+ <button class="absolute right-2 top-2 bg-blue-600 text-white px-4 py-2 rounded-full hover:bg-blue-700">
65
+ <i class="fas fa-search"></i>
66
+ </button>
67
+ </div>
68
+ </div>
69
+ </section>
70
+
71
+ <!-- Main Content -->
72
+ <main class="container mx-auto px-4 py-12">
73
+ <!-- Filters -->
74
+ <div class="mb-8">
75
+ <div class="flex flex-wrap justify-between items-center mb-6">
76
+ <h3 class="text-2xl font-semibold text-gray-800">Featured Networks</h3>
77
+ <div class="flex space-x-2">
78
+ <button class="px-3 py-1 bg-gray-200 rounded-full text-sm type-filter active" data-type="all">All</button>
79
+ <button class="px-3 py-1 bg-gray-200 rounded-full text-sm type-filter" data-type="vision">Vision</button>
80
+ <button class="px-3 py-1 bg-gray-200 rounded-full text-sm type-filter" data-type="nlp">NLP</button>
81
+ <button class="px-3 py-1 bg-gray-200 rounded-full text-sm type-filter" data-type="generative">Generative</button>
82
+ <button class="px-3 py-1 bg-gray-200 rounded-full text-sm type-filter" data-type="other">Other</button>
83
+ </div>
84
+ </div>
85
+ </div>
86
+
87
+ <!-- Network Grid -->
88
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" id="network-grid">
89
+ <!-- Network cards will be inserted here by JavaScript -->
90
+ </div>
91
+
92
+ <!-- Load More Button -->
93
+ <div class="text-center mt-12">
94
+ <button class="px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition" id="load-more">
95
+ Load More Networks
96
+ </button>
97
+ </div>
98
+ </main>
99
+
100
+ <!-- Footer -->
101
+ <footer class="bg-gray-800 text-white py-12">
102
+ <div class="container mx-auto px-4">
103
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
104
+ <div>
105
+ <h4 class="text-xl font-semibold mb-4">Neural Network Catalog</h4>
106
+ <p class="text-gray-400">Your one-stop resource for discovering and implementing neural networks.</p>
107
+ </div>
108
+ <div>
109
+ <h4 class="text-xl font-semibold mb-4">Quick Links</h4>
110
+ <ul class="space-y-2">
111
+ <li><a href="#" class="text-gray-400 hover:text-white">Documentation</a></li>
112
+ <li><a href="#" class="text-gray-400 hover:text-white">API Reference</a></li>
113
+ <li><a href="#" class="text-gray-400 hover:text-white">GitHub</a></li>
114
+ </ul>
115
+ </div>
116
+ <div>
117
+ <h4 class="text-xl font-semibold mb-4">Connect</h4>
118
+ <div class="flex space-x-4">
119
+ <a href="#" class="text-gray-400 hover:text-white text-2xl"><i class="fab fa-twitter"></i></a>
120
+ <a href="#" class="text-gray-400 hover:text-white text-2xl"><i class="fab fa-github"></i></a>
121
+ <a href="#" class="text-gray-400 hover:text-white text-2xl"><i class="fab fa-discord"></i></a>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
126
+ <p>© 2023 Neural Network Catalog. All rights reserved.</p>
127
+ </div>
128
+ </div>
129
+ </footer>
130
+
131
+ <!-- JavaScript -->
132
+ <script>
133
+ // Sample network data
134
+ const networks = [
135
+ {
136
+ id: 1,
137
+ name: "ResNet-50",
138
+ type: "vision",
139
+ description: "Deep residual network with 50 layers for image classification.",
140
+ tags: ["CNN", "ImageNet", "Classification"],
141
+ stars: 4.8,
142
+ implementations: ["PyTorch", "TensorFlow", "Keras"],
143
+ paper: "https://arxiv.org/abs/1512.03385"
144
+ },
145
+ {
146
+ id: 2,
147
+ name: "BERT",
148
+ type: "nlp",
149
+ description: "Bidirectional Encoder Representations from Transformers for natural language understanding.",
150
+ tags: ["Transformer", "NLP", "Pre-trained"],
151
+ stars: 4.9,
152
+ implementations: ["HuggingFace", "TensorFlow", "PyTorch"],
153
+ paper: "https://arxiv.org/abs/1810.04805"
154
+ },
155
+ {
156
+ id: 3,
157
+ name: "StyleGAN2",
158
+ type: "generative",
159
+ description: "Generative adversarial network for high-quality image generation with style control.",
160
+ tags: ["GAN", "Image Generation", "Style Transfer"],
161
+ stars: 4.7,
162
+ implementations: ["TensorFlow", "PyTorch"],
163
+ paper: "https://arxiv.org/abs/1912.04958"
164
+ },
165
+ {
166
+ id: 4,
167
+ name: "YOLOv5",
168
+ type: "vision",
169
+ description: "Real-time object detection system with high accuracy and speed.",
170
+ tags: ["Object Detection", "Real-time", "CNN"],
171
+ stars: 4.6,
172
+ implementations: ["PyTorch"],
173
+ paper: "https://arxiv.org/abs/1506.02640"
174
+ },
175
+ {
176
+ id: 5,
177
+ name: "GPT-3",
178
+ type: "nlp",
179
+ description: "Generative Pre-trained Transformer 3 for advanced language tasks.",
180
+ tags: ["Transformer", "Language Model", "OpenAI"],
181
+ stars: 4.9,
182
+ implementations: ["OpenAI API", "PyTorch"],
183
+ paper: "https://arxiv.org/abs/2005.14165"
184
+ },
185
+ {
186
+ id: 6,
187
+ name: "U-Net",
188
+ type: "vision",
189
+ description: "Convolutional network for biomedical image segmentation.",
190
+ tags: ["Segmentation", "Medical Imaging", "CNN"],
191
+ stars: 4.5,
192
+ implementations: ["TensorFlow", "PyTorch", "Keras"],
193
+ paper: "https://arxiv.org/abs/1505.04597"
194
+ }
195
+ ];
196
+
197
+ // Function to create network cards
198
+ function createNetworkCards(filterType = 'all') {
199
+ const grid = document.getElementById('network-grid');
200
+ grid.innerHTML = '';
201
+
202
+ const filteredNetworks = filterType === 'all'
203
+ ? networks
204
+ : networks.filter(network => network.type === filterType);
205
+
206
+ filteredNetworks.forEach(network => {
207
+ const card = document.createElement('div');
208
+ card.className = 'network-card bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl';
209
+ card.innerHTML = `
210
+ <div class="p-6">
211
+ <div class="flex justify-between items-start mb-2">
212
+ <h3 class="text-xl font-bold text-gray-800">${network.name}</h3>
213
+ <div class="flex items-center text-yellow-500">
214
+ <i class="fas fa-star"></i>
215
+ <span class="ml-1 text-gray-700">${network.stars}</span>
216
+ </div>
217
+ </div>
218
+ <p class="text-gray-600 mb-4">${network.description}</p>
219
+ <div class="flex flex-wrap gap-2 mb-4">
220
+ ${network.tags.map(tag => `<span class="tag px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">${tag}</span>`).join('')}
221
+ </div>
222
+ <div class="mb-4">
223
+ <h4 class="text-sm font-semibold text-gray-700 mb-1">Implementations:</h4>
224
+ <div class="flex flex-wrap gap-2">
225
+ ${network.implementations.map(impl => `<span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded">${impl}</span>`).join('')}
226
+ </div>
227
+ </div>
228
+ <div class="flex justify-between items-center">
229
+ <a href="${network.paper}" target="_blank" class="text-blue-600 hover:underline text-sm">
230
+ <i class="fas fa-file-alt mr-1"></i> Research Paper
231
+ </a>
232
+ <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition text-sm">
233
+ Try This Network
234
+ </button>
235
+ </div>
236
+ </div>
237
+ `;
238
+ grid.appendChild(card);
239
+ });
240
+ }
241
+
242
+ // Initialize the page with all networks
243
+ document.addEventListener('DOMContentLoaded', () => {
244
+ createNetworkCards();
245
+
246
+ // Filter buttons functionality
247
+ document.querySelectorAll('.type-filter').forEach(button => {
248
+ button.addEventListener('click', () => {
249
+ document.querySelectorAll('.type-filter').forEach(btn => btn.classList.remove('active'));
250
+ button.classList.add('active');
251
+ const filterType = button.dataset.type;
252
+ createNetworkCards(filterType);
253
+ });
254
+ });
255
+
256
+ // Search functionality
257
+ document.querySelector('.search-input').addEventListener('input', (e) => {
258
+ const searchTerm = e.target.value.toLowerCase();
259
+ const filtered = networks.filter(network =>
260
+ network.name.toLowerCase().includes(searchTerm) ||
261
+ network.description.toLowerCase().includes(searchTerm) ||
262
+ network.tags.some(tag => tag.toLowerCase().includes(searchTerm))
263
+ );
264
+
265
+ const grid = document.getElementById('network-grid');
266
+ grid.innerHTML = '';
267
+
268
+ filtered.forEach(network => {
269
+ const card = document.createElement('div');
270
+ card.className = 'network-card bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl';
271
+ card.innerHTML = `
272
+ <div class="p-6">
273
+ <div class="flex justify-between items-start mb-2">
274
+ <h3 class="text-xl font-bold text-gray-800">${network.name}</h3>
275
+ <div class="flex items-center text-yellow-500">
276
+ <i class="fas fa-star"></i>
277
+ <span class="ml-1 text-gray-700">${network.stars}</span>
278
+ </div>
279
+ </div>
280
+ <p class="text-gray-600 mb-4">${network.description}</p>
281
+ <div class="flex flex-wrap gap-2 mb-4">
282
+ ${network.tags.map(tag => `<span class="tag px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">${tag}</span>`).join('')}
283
+ </div>
284
+ <div class="mb-4">
285
+ <h4 class="text-sm font-semibold text-gray-700 mb-1">Implementations:</h4>
286
+ <div class="flex flex-wrap gap-2">
287
+ ${network.implementations.map(impl => `<span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded">${impl}</span>`).join('')}
288
+ </div>
289
+ </div>
290
+ <div class="flex justify-between items-center">
291
+ <a href="${network.paper}" target="_blank" class="text-blue-600 hover:underline text-sm">
292
+ <i class="fas fa-file-alt mr-1"></i> Research Paper
293
+ </a>
294
+ <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition text-sm">
295
+ Try This Network
296
+ </button>
297
+ </div>
298
+ </div>
299
+ `;
300
+ grid.appendChild(card);
301
+ });
302
+ });
303
+
304
+ // Load more button functionality
305
+ document.getElementById('load-more').addEventListener('click', () => {
306
+ // In a real app, this would fetch more data from an API
307
+ alert('Loading more networks... This would fetch additional data in a production environment.');
308
+ });
309
+ });
310
+ </script>
311
+ <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>
312
+ </html>