File size: 22,682 Bytes
f14f7aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI Model Information Dashboard</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);
        }
        .model-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);
        }
        .token-meter {
            height: 8px;
            border-radius: 4px;
            background: linear-gradient(90deg, #4ade80 0%, #3b82f6 50%, #ef4444 100%);
        }
        .token-progress {
            height: 100%;
            border-radius: 4px;
            background-color: #ffffff;
            transition: width 0.5s ease;
        }
        .animate-pulse-slow {
            animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }
        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
        }
    </style>
</head>
<body class="min-h-screen bg-gray-50">
    <div class="gradient-bg text-white">
        <div class="container mx-auto px-4 py-12">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-8 md:mb-0">
                    <h1 class="text-3xl md:text-4xl font-bold mb-2">AI Model Explorer</h1>
                    <p class="text-lg opacity-90">Discover capabilities and limitations of AI models</p>
                </div>
                <div class="relative w-full md:w-auto">
                    <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                        <i class="fas fa-search text-gray-400"></i>
                    </div>
                    <input type="text" class="w-full md:w-64 pl-10 pr-4 py-2 rounded-lg bg-white bg-opacity-20 placeholder-white focus:outline-none focus:ring-2 focus:ring-white" placeholder="Search models...">
                </div>
            </div>
        </div>
    </div>

    <div class="container mx-auto px-4 py-8 -mt-8">
        <div class="bg-white rounded-xl shadow-lg overflow-hidden">
            <div class="md:flex">
                <div class="md:w-1/3 p-6 gradient-bg text-white flex flex-col justify-center">
                    <div class="text-center md:text-left">
                        <div class="w-20 h-20 bg-white bg-opacity-20 rounded-full flex items-center justify-center mx-auto md:mx-0 mb-4">
                            <i class="fas fa-brain text-3xl"></i>
                        </div>
                        <h2 class="text-2xl font-bold mb-2">Model Specifications</h2>
                        <p class="opacity-90 mb-6">Understand the technical capabilities of different AI models including token limits, training data, and performance characteristics.</p>
                        <button class="px-6 py-2 bg-white text-purple-600 rounded-lg font-medium hover:bg-opacity-90 transition">Learn More</button>
                    </div>
                </div>
                <div class="md:w-2/3 p-6">
                    <div class="mb-6">
                        <h3 class="text-lg font-semibold text-gray-700 mb-2">What are tokens?</h3>
                        <p class="text-gray-600">Tokens are the basic units of text that AI models process. In English, a token can be as short as one character or as long as one word (e.g., "a" or "apple"). The maximum token limit determines how much text the model can process in a single request.</p>
                    </div>
                    
                    <div class="mb-8">
                        <div class="flex justify-between items-center mb-2">
                            <h3 class="font-medium text-gray-700">Token Limit Comparison</h3>
                            <span class="text-sm text-gray-500">Max tokens per request</span>
                        </div>
                        <div class="space-y-4">
                            <!-- Model 1 -->
                            <div>
                                <div class="flex justify-between mb-1">
                                    <span class="font-medium">GPT-4</span>
                                    <span class="text-gray-600">32,000 tokens</span>
                                </div>
                                <div class="token-meter">
                                    <div class="token-progress" style="width: 100%"></div>
                                </div>
                            </div>
                            
                            <!-- Model 2 -->
                            <div>
                                <div class="flex justify-between mb-1">
                                    <span class="font-medium">GPT-3.5 Turbo</span>
                                    <span class="text-gray-600">4,096 tokens</span>
                                </div>
                                <div class="token-meter">
                                    <div class="token-progress" style="width: 12.8%"></div>
                                </div>
                            </div>
                            
                            <!-- Model 3 -->
                            <div>
                                <div class="flex justify-between mb-1">
                                    <span class="font-medium">Claude 2</span>
                                    <span class="text-gray-600">100,000 tokens</span>
                                </div>
                                <div class="token-meter">
                                    <div class="token-progress" style="width: 312.5%"></div>
                                </div>
                                <p class="text-xs text-gray-500 mt-1">* Display limited to comparison scale</p>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-blue-50 border-l-4 border-blue-400 p-4 rounded-r-lg">
                        <div class="flex">
                            <div class="flex-shrink-0">
                                <i class="fas fa-info-circle text-blue-400"></i>
                            </div>
                            <div class="ml-3">
                                <p class="text-sm text-blue-700">
                                    Token limits can vary based on the specific implementation and may change over time as models are updated. Always check the latest documentation for the model you're using.
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="container mx-auto px-4 py-8">
        <h2 class="text-2xl font-bold text-gray-800 mb-6">Popular AI Models</h2>
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
            <!-- Model Card 1 -->
            <div class="model-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300">
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-4">
                            <i class="fas fa-robot text-purple-600"></i>
                        </div>
                        <div>
                            <h3 class="font-bold text-lg text-gray-800">GPT-4</h3>
                            <p class="text-gray-500 text-sm">OpenAI</p>
                        </div>
                    </div>
                    <div class="mb-4">
                        <div class="flex justify-between text-sm mb-1">
                            <span class="text-gray-600">Max Tokens</span>
                            <span class="font-medium">32,000</span>
                        </div>
                        <div class="w-full bg-gray-200 rounded-full h-2">
                            <div class="bg-purple-600 h-2 rounded-full" style="width: 100%"></div>
                        </div>
                    </div>
                    <div class="flex justify-between text-sm mb-4">
                        <div>
                            <span class="text-gray-600 block">Release</span>
                            <span class="font-medium">2023</span>
                        </div>
                        <div>
                            <span class="text-gray-600 block">Type</span>
                            <span class="font-medium">Multimodal</span>
                        </div>
                    </div>
                    <button class="w-full py-2 bg-purple-100 text-purple-600 rounded-lg font-medium hover:bg-purple-200 transition">View Details</button>
                </div>
            </div>
            
            <!-- Model Card 2 -->
            <div class="model-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300">
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mr-4">
                            <i class="fas fa-bolt text-blue-600"></i>
                        </div>
                        <div>
                            <h3 class="font-bold text-lg text-gray-800">GPT-3.5 Turbo</h3>
                            <p class="text-gray-500 text-sm">OpenAI</p>
                        </div>
                    </div>
                    <div class="mb-4">
                        <div class="flex justify-between text-sm mb-1">
                            <span class="text-gray-600">Max Tokens</span>
                            <span class="font-medium">4,096</span>
                        </div>
                        <div class="w-full bg-gray-200 rounded-full h-2">
                            <div class="bg-blue-600 h-2 rounded-full" style="width: 12.8%"></div>
                        </div>
                    </div>
                    <div class="flex justify-between text-sm mb-4">
                        <div>
                            <span class="text-gray-600 block">Release</span>
                            <span class="font-medium">2022</span>
                        </div>
                        <div>
                            <span class="text-gray-600 block">Type</span>
                            <span class="font-medium">Text</span>
                        </div>
                    </div>
                    <button class="w-full py-2 bg-blue-100 text-blue-600 rounded-lg font-medium hover:bg-blue-200 transition">View Details</button>
                </div>
            </div>
            
            <!-- Model Card 3 -->
            <div class="model-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300">
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center mr-4">
                            <i class="fas fa-leaf text-green-600"></i>
                        </div>
                        <div>
                            <h3 class="font-bold text-lg text-gray-800">Claude 2</h3>
                            <p class="text-gray-500 text-sm">Anthropic</p>
                        </div>
                    </div>
                    <div class="mb-4">
                        <div class="flex justify-between text-sm mb-1">
                            <span class="text-gray-600">Max Tokens</span>
                            <span class="font-medium">100,000</span>
                        </div>
                        <div class="w-full bg-gray-200 rounded-full h-2">
                            <div class="bg-green-600 h-2 rounded-full" style="width: 312.5%"></div>
                        </div>
                        <p class="text-xs text-gray-500 mt-1">* Off scale for comparison</p>
                    </div>
                    <div class="flex justify-between text-sm mb-4">
                        <div>
                            <span class="text-gray-600 block">Release</span>
                            <span class="font-medium">2023</span>
                        </div>
                        <div>
                            <span class="text-gray-600 block">Type</span>
                            <span class="font-medium">Text</span>
                        </div>
                    </div>
                    <button class="w-full py-2 bg-green-100 text-green-600 rounded-lg font-medium hover:bg-green-200 transition">View Details</button>
                </div>
            </div>
        </div>
    </div>

    <div class="container mx-auto px-4 py-8">
        <div class="bg-white rounded-xl shadow-md overflow-hidden">
            <div class="md:flex">
                <div class="md:w-1/2 p-8">
                    <h2 class="text-2xl font-bold text-gray-800 mb-4">Token Calculator</h2>
                    <p class="text-gray-600 mb-6">Estimate how many tokens your text will consume based on different models.</p>
                    
                    <div class="mb-6">
                        <label class="block text-gray-700 font-medium mb-2">Select Model</label>
                        <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500">
                            <option>GPT-4 (32k tokens)</option>
                            <option>GPT-3.5 Turbo (4k tokens)</option>
                            <option>Claude 2 (100k tokens)</option>
                        </select>
                    </div>
                    
                    <div class="mb-6">
                        <label class="block text-gray-700 font-medium mb-2">Enter Your Text</label>
                        <textarea class="w-full px-4 py-2 border border-gray-300 rounded-lg h-32 focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="Paste your text here..."></textarea>
                    </div>
                    
                    <button class="w-full py-3 bg-purple-600 text-white rounded-lg font-medium hover:bg-purple-700 transition flex items-center justify-center">
                        <i class="fas fa-calculator mr-2"></i> Calculate Tokens
                    </button>
                </div>
                
                <div class="md:w-1/2 gradient-bg text-white p-8 flex flex-col justify-center">
                    <div class="text-center">
                        <div class="w-24 h-24 bg-white bg-opacity-20 rounded-full flex items-center justify-center mx-auto mb-6">
                            <i class="fas fa-chart-bar text-4xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-2">Token Estimation Results</h3>
                        <p class="opacity-90 mb-6">Enter text and select a model to see token usage estimates and how much of the model's capacity you're using.</p>
                        
                        <div class="bg-white bg-opacity-20 rounded-lg p-6">
                            <div class="flex justify-between mb-4">
                                <span>Token Count:</span>
                                <span class="font-bold">--</span>
                            </div>
                            <div class="flex justify-between mb-4">
                                <span>Percentage Used:</span>
                                <span class="font-bold">--%</span>
                            </div>
                            <div class="mb-4">
                                <div class="flex justify-between text-sm mb-1">
                                    <span>Model Capacity</span>
                                    <span>0%</span>
                                </div>
                                <div class="w-full bg-white bg-opacity-30 rounded-full h-3">
                                    <div class="bg-white h-3 rounded-full" style="width: 0%"></div>
                                </div>
                            </div>
                            <div class="text-xs opacity-80">
                                <i class="fas fa-info-circle mr-1"></i> Results will appear here after calculation
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <footer class="bg-gray-800 text-white py-8">
        <div class="container mx-auto px-4">
            <div class="md:flex md:justify-between">
                <div class="mb-8 md:mb-0">
                    <h3 class="text-xl font-bold mb-4">AI Model Explorer</h3>
                    <p class="text-gray-400 max-w-md">A comprehensive resource for understanding the capabilities and limitations of various AI language models.</p>
                </div>
                <div class="grid grid-cols-2 md:grid-cols-3 gap-8">
                    <div>
                        <h4 class="font-semibold mb-4">Resources</h4>
                        <ul class="space-y-2">
                            <li><a href="#" class="text-gray-400 hover:text-white transition">Documentation</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-white transition">API Reference</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-white transition">Blog</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="font-semibold mb-4">Company</h4>
                        <ul class="space-y-2">
                            <li><a href="#" class="text-gray-400 hover:text-white transition">About</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-white transition">Careers</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="font-semibold mb-4">Connect</h4>
                        <div class="flex space-x-4">
                            <a href="#" class="w-8 h-8 rounded-full bg-gray-700 flex items-center justify-center hover:bg-purple-600 transition">
                                <i class="fab fa-twitter"></i>
                            </a>
                            <a href="#" class="w-8 h-8 rounded-full bg-gray-700 flex items-center justify-center hover:bg-blue-600 transition">
                                <i class="fab fa-linkedin-in"></i>
                            </a>
                            <a href="#" class="w-8 h-8 rounded-full bg-gray-700 flex items-center justify-center hover:bg-red-600 transition">
                                <i class="fab fa-youtube"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="border-t border-gray-700 mt-8 pt-8 text-center md:text-left">
                <p class="text-gray-400">© 2023 AI Model Explorer. All rights reserved.</p>
            </div>
        </div>
    </footer>

    <script>
        // Simple token calculator functionality
        document.addEventListener('DOMContentLoaded', function() {
            const calculateBtn = document.querySelector('button:has(.fa-calculator)');
            const textarea = document.querySelector('textarea');
            const tokenCountEl = document.querySelector('.flex.justify-between.mb-4 span.font-bold:first-of-type');
            const percentageEl = document.querySelector('.flex.justify-between.mb-4 span.font-bold:last-of-type');
            const progressBar = document.querySelector('.bg-white.h-3.rounded-full');
            
            calculateBtn.addEventListener('click', function() {
                const text = textarea.value;
                if (!text.trim()) {
                    alert('Please enter some text to calculate tokens');
                    return;
                }
                
                // Very rough estimation: ~1 token per 4 characters in English
                const estimatedTokens = Math.ceil(text.length / 4);
                const selectedModel = document.querySelector('select').value;
                let maxTokens = 32000; // default to GPT-4
                
                if (selectedModel.includes('3.5')) maxTokens = 4096;
                if (selectedModel.includes('Claude')) maxTokens = 100000;
                
                const percentage = Math.min(100, (estimatedTokens / maxTokens) * 100);
                
                tokenCountEl.textContent = estimatedTokens.toLocaleString();
                percentageEl.textContent = percentage.toFixed(2) + '%';
                progressBar.style.width = percentage + '%';
                
                // Change progress bar color based on usage
                if (percentage > 80) {
                    progressBar.classList.remove('bg-white');
                    progressBar.classList.add('bg-red-400');
                } else if (percentage > 50) {
                    progressBar.classList.remove('bg-white');
                    progressBar.classList.add('bg-yellow-400');
                } else {
                    progressBar.classList.remove('bg-red-400', 'bg-yellow-400');
                    progressBar.classList.add('bg-white');
                }
            });
        });
    </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=silverfangx/max-token" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>