File size: 16,049 Bytes
a6796fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Guardrail Filter Levels</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>
        .filter-level {
            transition: all 0.3s ease;
        }
        .filter-level:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .progress-bar {
            transition: width 1s ease-in-out;
        }
        @keyframes pulse {
            0% { opacity: 0.6; }
            50% { opacity: 1; }
            100% { opacity: 0.6; }
        }
        .pulse {
            animation: pulse 2s infinite;
        }
    </style>
</head>
<body class="bg-gray-50 min-h-screen">
    <div class="container mx-auto px-4 py-12">
        <div class="text-center mb-16">
            <h1 class="text-4xl font-bold text-gray-800 mb-4">Guardrail Filter Levels</h1>
            <p class="text-lg text-gray-600 max-w-2xl mx-auto">
                Our AI safety filters are configured to balance helpfulness with safety. Explore the different protection levels below.
            </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-3 gap-8 mb-12">
            <!-- Basic Protection -->
            <div class="filter-level bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg">
                <div class="bg-blue-500 p-6">
                    <div class="flex items-center justify-between">
                        <h3 class="text-xl font-semibold text-white">Basic Protection</h3>
                        <div class="bg-blue-400 rounded-full p-2">
                            <i class="fas fa-shield-alt text-white"></i>
                        </div>
                    </div>
                </div>
                <div class="p-6">
                    <div class="mb-4">
                        <div class="flex justify-between mb-1">
                            <span class="text-sm font-medium text-gray-500">Filter Strength</span>
                            <span class="text-sm font-medium text-blue-600">30%</span>
                        </div>
                        <div class="w-full bg-gray-200 rounded-full h-2.5">
                            <div class="progress-bar bg-blue-600 h-2.5 rounded-full" style="width: 30%"></div>
                        </div>
                    </div>
                    <ul class="space-y-2 text-gray-600 mb-6">
                        <li class="flex items-center">
                            <i class="fas fa-check-circle text-green-500 mr-2"></i>
                            Blocks explicit content
                        </li>
                        <li class="flex items-center">
                            <i class="fas fa-check-circle text-green-500 mr-2"></i>
                            Basic harmful content filtering
                        </li>
                        <li class="flex items-center text-gray-400">
                            <i class="fas fa-times-circle text-gray-300 mr-2"></i>
                            Limited context awareness
                        </li>
                    </ul>
                    <button class="w-full py-2 px-4 border border-blue-500 text-blue-500 rounded-lg hover:bg-blue-50 transition">
                        Current Setting
                    </button>
                </div>
            </div>

            <!-- Balanced Protection -->
            <div class="filter-level bg-white rounded-xl shadow-lg overflow-hidden border-2 border-purple-500 transform scale-105">
                <div class="bg-purple-500 p-6">
                    <div class="flex items-center justify-between">
                        <h3 class="text-xl font-semibold text-white">Balanced Protection</h3>
                        <div class="bg-purple-400 rounded-full p-2">
                            <i class="fas fa-balance-scale text-white"></i>
                        </div>
                    </div>
                </div>
                <div class="p-6">
                    <div class="mb-4">
                        <div class="flex justify-between mb-1">
                            <span class="text-sm font-medium text-gray-500">Filter Strength</span>
                            <span class="text-sm font-medium text-purple-600">65%</span>
                        </div>
                        <div class="w-full bg-gray-200 rounded-full h-2.5">
                            <div class="progress-bar bg-purple-600 h-2.5 rounded-full" style="width: 65%"></div>
                        </div>
                    </div>
                    <ul class="space-y-2 text-gray-600 mb-6">
                        <li class="flex items-center">
                            <i class="fas fa-check-circle text-green-500 mr-2"></i>
                            Blocks explicit and harmful content
                        </li>
                        <li class="flex items-center">
                            <i class="fas fa-check-circle text-green-500 mr-2"></i>
                            Context-aware filtering
                        </li>
                        <li class="flex items-center">
                            <i class="fas fa-check-circle text-green-500 mr-2"></i>
                            Bias detection
                        </li>
                    </ul>
                    <button class="w-full py-2 px-4 bg-purple-500 text-white rounded-lg hover:bg-purple-600 transition">
                        Recommended Setting
                    </button>
                </div>
            </div>

            <!-- Maximum Protection -->
            <div class="filter-level bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg">
                <div class="bg-red-500 p-6">
                    <div class="flex items-center justify-between">
                        <h3 class="text-xl font-semibold text-white">Maximum Protection</h3>
                        <div class="bg-red-400 rounded-full p-2">
                            <i class="fas fa-lock text-white"></i>
                        </div>
                    </div>
                </div>
                <div class="p-6">
                    <div class="mb-4">
                        <div class="flex justify-between mb-1">
                            <span class="text-sm font-medium text-gray-500">Filter Strength</span>
                            <span class="text-sm font-medium text-red-600">95%</span>
                        </div>
                        <div class="w-full bg-gray-200 rounded-full h-2.5">
                            <div class="progress-bar bg-red-600 h-2.5 rounded-full" style="width: 95%"></div>
                        </div>
                    </div>
                    <ul class="space-y-2 text-gray-600 mb-6">
                        <li class="flex items-center">
                            <i class="fas fa-check-circle text-green-500 mr-2"></i>
                            Aggressive content filtering
                        </li>
                        <li class="flex items-center">
                            <i class="fas fa-check-circle text-green-500 mr-2"></i>
                            Advanced context analysis
                        </li>
                        <li class="flex items-center text-gray-400">
                            <i class="fas fa-times-circle text-gray-300 mr-2"></i>
                            May limit helpful responses
                        </li>
                    </ul>
                    <button class="w-full py-2 px-4 border border-red-500 text-red-500 rounded-lg hover:bg-red-50 transition">
                        Strict Setting
                    </button>
                </div>
            </div>
        </div>

        <div class="bg-white rounded-xl shadow-md p-8 mb-12">
            <h2 class="text-2xl font-bold text-gray-800 mb-6">Filter Level Configuration</h2>
            
            <div class="mb-8">
                <h3 class="text-lg font-semibold text-gray-700 mb-4">Current Filter Settings</h3>
                <div class="bg-gray-50 p-6 rounded-lg">
                    <div class="flex flex-col md:flex-row md:items-center md:justify-between gap-4">
                        <div>
                            <h4 class="font-medium text-gray-800">Content Safety</h4>
                            <p class="text-sm text-gray-600">Balanced protection against harmful content</p>
                        </div>
                        <div class="w-full md:w-64">
                            <input type="range" min="0" max="100" value="65" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer">
                        </div>
                    </div>
                    
                    <div class="border-t border-gray-200 my-4"></div>
                    
                    <div class="flex flex-col md:flex-row md:items-center md:justify-between gap-4">
                        <div>
                            <h4 class="font-medium text-gray-800">Bias Mitigation</h4>
                            <p class="text-sm text-gray-600">Moderate detection of biased language</p>
                        </div>
                        <div class="w-full md:w-64">
                            <input type="range" min="0" max="100" value="50" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer">
                        </div>
                    </div>
                    
                    <div class="border-t border-gray-200 my-4"></div>
                    
                    <div class="flex flex-col md:flex-row md:items-center md:justify-between gap-4">
                        <div>
                            <h4 class="font-medium text-gray-800">Fact Verification</h4>
                            <p class="text-sm text-gray-600">Basic fact-checking capabilities</p>
                        </div>
                        <div class="w-full md:w-64">
                            <input type="range" min="0" max="100" value="40" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer">
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="flex flex-col sm:flex-row gap-4">
                <button class="flex-1 py-3 px-6 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition flex items-center justify-center gap-2">
                    <i class="fas fa-save"></i> Save Settings
                </button>
                <button class="flex-1 py-3 px-6 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition flex items-center justify-center gap-2">
                    <i class="fas fa-undo"></i> Reset to Defaults
                </button>
            </div>
        </div>

        <div class="bg-indigo-50 rounded-xl p-8">
            <div class="flex flex-col md:flex-row items-center gap-8">
                <div class="flex-shrink-0">
                    <div class="bg-indigo-100 rounded-full p-4">
                        <i class="fas fa-robot text-indigo-600 text-4xl"></i>
                    </div>
                </div>
                <div>
                    <h3 class="text-xl font-bold text-gray-800 mb-2">About Our Guardrails</h3>
                    <p class="text-gray-600 mb-4">
                        Our AI systems use multiple layers of protection to ensure safe and responsible interactions. 
                        These filters are continuously updated to address emerging challenges while maintaining helpfulness.
                    </p>
                    <div class="flex flex-wrap gap-2">
                        <span class="px-3 py-1 bg-indigo-100 text-indigo-800 rounded-full text-sm font-medium">
                            <i class="fas fa-shield-alt mr-1"></i> Safety
                        </span>
                        <span class="px-3 py-1 bg-indigo-100 text-indigo-800 rounded-full text-sm font-medium">
                            <i class="fas fa-lightbulb mr-1"></i> Helpfulness
                        </span>
                        <span class="px-3 py-1 bg-indigo-100 text-indigo-800 rounded-full text-sm font-medium">
                            <i class="fas fa-balance-scale mr-1"></i> Balance
                        </span>
                    </div>
                </div>
            </div>
        </div>

        <div class="mt-12 text-center">
            <p class="text-gray-500 text-sm">
                <i class="fas fa-info-circle mr-1"></i> Filter settings may be adjusted automatically in certain contexts to ensure optimal performance.
            </p>
        </div>
    </div>

    <script>
        // Add some interactive elements
        document.addEventListener('DOMContentLoaded', function() {
            // Animate progress bars on page load
            setTimeout(() => {
                const progressBars = document.querySelectorAll('.progress-bar');
                progressBars.forEach(bar => {
                    const width = bar.style.width;
                    bar.style.width = '0';
                    setTimeout(() => {
                        bar.style.width = width;
                    }, 100);
                });
            }, 300);

            // Add click effect to filter level cards
            const cards = document.querySelectorAll('.filter-level');
            cards.forEach(card => {
                card.addEventListener('click', function() {
                    cards.forEach(c => c.classList.remove('border-purple-500', 'scale-105'));
                    this.classList.add('border-purple-500', 'scale-105');
                });
            });

            // Range slider interaction
            const rangeSliders = document.querySelectorAll('input[type="range"]');
            rangeSliders.forEach(slider => {
                slider.addEventListener('input', function() {
                    const value = this.value;
                    const bubble = document.createElement('div');
                    bubble.className = 'absolute -top-8 bg-gray-800 text-white text-xs px-2 py-1 rounded';
                    bubble.textContent = value + '%';
                    
                    // Position the bubble
                    const thumbPos = (value / 100) * this.offsetWidth;
                    bubble.style.left = thumbPos + 'px';
                    
                    // Remove any existing bubble
                    const existingBubble = this.parentNode.querySelector('.absolute');
                    if (existingBubble) {
                        existingBubble.remove();
                    }
                    
                    this.parentNode.appendChild(bubble);
                    
                    // Remove bubble after animation
                    setTimeout(() => {
                        bubble.classList.add('opacity-0', 'transition-opacity', 'duration-300');
                        setTimeout(() => bubble.remove(), 300);
                    }, 1000);
                });
            });
        });
    </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=SCOUSEsCRIPTZ/deepseek-no-rules" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>