aknouce94 commited on
Commit
96e1d1a
·
verified ·
1 Parent(s): b4fb00f

ajoute emplacement pour charge les fichier pour analyse

Browse files
Files changed (1) hide show
  1. darkbert.html +56 -10
darkbert.html CHANGED
@@ -107,8 +107,21 @@
107
  <div class="space-y-3">
108
  <div>
109
  <label class="block text-sm font-medium text-gray-700 mb-2">Input Text</label>
110
- <textarea id="kat-input" placeholder="Enter text for analysis..." class="w-full h-24 p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 text-sm"></textarea>
111
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  <button onclick="runKATAnalysis()" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-6 rounded-lg transition-colors flex items-center justify-center gap-2">
113
  <i data-feather="zap" class="w-4 h-4"></i>
114
  Run KAT-Dev Analysis
@@ -134,8 +147,21 @@
134
  <div class="space-y-3">
135
  <div>
136
  <label class="block text-sm font-medium text-gray-700 mb-2">Input Text</label>
137
- <textarea id="deepseek-input" placeholder="Enter text for analysis..." class="w-full h-24 p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 text-sm"></textarea>
138
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  <button onclick="runDeepSeekAnalysis()" class="w-full bg-purple-600 hover:bg-purple-700 text-white font-semibold py-3 px-6 rounded-lg transition-colors flex items-center justify-center gap-2">
140
  <i data-feather="layers" class="w-4 h-4"></i>
141
  Run DeepSeek Analysis
@@ -204,15 +230,19 @@
204
  backgroundColor: 0xf8fafc,
205
  size: 0.8
206
  });
207
-
208
  function runKATAnalysis() {
209
  const input = document.getElementById('kat-input').value;
210
  const clientType = document.getElementById('client-type').value;
211
  const investigationTitle = document.getElementById('investigation-title').value;
212
  const securityLevel = document.getElementById('security-level').value;
213
  const documents = document.getElementById('documents-input').value.split('\n').filter(doc => doc.trim() !== '');
 
214
 
215
- if (!input.trim()) {
 
 
 
 
216
  alert('Please enter some text for analysis');
217
  return;
218
  }
@@ -249,15 +279,19 @@
249
  feather.replace();
250
  }, 2000);
251
  }
252
-
253
  function runDeepSeekAnalysis() {
254
  const input = document.getElementById('deepseek-input').value;
255
  const clientType = document.getElementById('client-type').value;
256
  const investigationTitle = document.getElementById('investigation-title').value;
257
  const securityLevel = document.getElementById('security-level').value;
258
  const documents = document.getElementById('documents-input').value.split('\n').filter(doc => doc.trim() !== '');
 
259
 
260
- if (!input.trim()) {
 
 
 
 
261
  alert('Please enter some text for analysis');
262
  return;
263
  }
@@ -294,12 +328,24 @@
294
  feather.replace();
295
  }, 3000);
296
  }
297
-
298
  // Update document count
299
  document.getElementById('documents-input').addEventListener('input', function() {
300
  const count = this.value.split('\n').filter(doc => doc.trim() !== '').length;
301
  document.querySelector('.text-xs.text-gray-500').textContent = `${count} documents | Minimum 3 documents required for batch processing`;
302
  });
303
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
304
  </body>
305
  </html>
 
107
  <div class="space-y-3">
108
  <div>
109
  <label class="block text-sm font-medium text-gray-700 mb-2">Input Text</label>
110
+ <textarea id="kat-input" placeholder="Enter text for analysis..." class="w-full h-24 p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 text-sm mb-2"></textarea>
111
+ <div class="mb-2">
112
+ <label class="block text-sm font-medium text-gray-700 mb-1">Or upload files</label>
113
+ <div class="flex items-center justify-center w-full">
114
+ <label for="kat-files" class="flex flex-col items-center justify-center w-full h-32 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 hover:bg-gray-100">
115
+ <div class="flex flex-col items-center justify-center pt-5 pb-6">
116
+ <i data-feather="upload" class="w-8 h-8 text-gray-500 mb-2"></i>
117
+ <p class="text-sm text-gray-500">Click to upload or drag and drop</p>
118
+ <p class="text-xs text-gray-500">PDF, DOCX, TXT (Max 10MB)</p>
119
+ </div>
120
+ <input id="kat-files" type="file" class="hidden" multiple>
121
+ </label>
122
+ </div>
123
+ </div>
124
+ </div>
125
  <button onclick="runKATAnalysis()" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-6 rounded-lg transition-colors flex items-center justify-center gap-2">
126
  <i data-feather="zap" class="w-4 h-4"></i>
127
  Run KAT-Dev Analysis
 
147
  <div class="space-y-3">
148
  <div>
149
  <label class="block text-sm font-medium text-gray-700 mb-2">Input Text</label>
150
+ <textarea id="deepseek-input" placeholder="Enter text for analysis..." class="w-full h-24 p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 text-sm mb-2"></textarea>
151
+ <div class="mb-2">
152
+ <label class="block text-sm font-medium text-gray-700 mb-1">Or upload files</label>
153
+ <div class="flex items-center justify-center w-full">
154
+ <label for="deepseek-files" class="flex flex-col items-center justify-center w-full h-32 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 hover:bg-gray-100">
155
+ <div class="flex flex-col items-center justify-center pt-5 pb-6">
156
+ <i data-feather="upload" class="w-8 h-8 text-gray-500 mb-2"></i>
157
+ <p class="text-sm text-gray-500">Click to upload or drag and drop</p>
158
+ <p class="text-xs text-gray-500">PDF, DOCX, TXT (Max 10MB)</p>
159
+ </div>
160
+ <input id="deepseek-files" type="file" class="hidden" multiple>
161
+ </label>
162
+ </div>
163
+ </div>
164
+ </div>
165
  <button onclick="runDeepSeekAnalysis()" class="w-full bg-purple-600 hover:bg-purple-700 text-white font-semibold py-3 px-6 rounded-lg transition-colors flex items-center justify-center gap-2">
166
  <i data-feather="layers" class="w-4 h-4"></i>
167
  Run DeepSeek Analysis
 
230
  backgroundColor: 0xf8fafc,
231
  size: 0.8
232
  });
 
233
  function runKATAnalysis() {
234
  const input = document.getElementById('kat-input').value;
235
  const clientType = document.getElementById('client-type').value;
236
  const investigationTitle = document.getElementById('investigation-title').value;
237
  const securityLevel = document.getElementById('security-level').value;
238
  const documents = document.getElementById('documents-input').value.split('\n').filter(doc => doc.trim() !== '');
239
+ const files = document.getElementById('kat-files').files;
240
 
241
+ if (!input.trim() && files.length === 0) {
242
+ alert('Please enter some text or upload files for analysis');
243
+ return;
244
+ }
245
+ if (!input.trim()) {
246
  alert('Please enter some text for analysis');
247
  return;
248
  }
 
279
  feather.replace();
280
  }, 2000);
281
  }
 
282
  function runDeepSeekAnalysis() {
283
  const input = document.getElementById('deepseek-input').value;
284
  const clientType = document.getElementById('client-type').value;
285
  const investigationTitle = document.getElementById('investigation-title').value;
286
  const securityLevel = document.getElementById('security-level').value;
287
  const documents = document.getElementById('documents-input').value.split('\n').filter(doc => doc.trim() !== '');
288
+ const files = document.getElementById('deepseek-files').files;
289
 
290
+ if (!input.trim() && files.length === 0) {
291
+ alert('Please enter some text or upload files for analysis');
292
+ return;
293
+ }
294
+ if (!input.trim()) {
295
  alert('Please enter some text for analysis');
296
  return;
297
  }
 
328
  feather.replace();
329
  }, 3000);
330
  }
 
331
  // Update document count
332
  document.getElementById('documents-input').addEventListener('input', function() {
333
  const count = this.value.split('\n').filter(doc => doc.trim() !== '').length;
334
  document.querySelector('.text-xs.text-gray-500').textContent = `${count} documents | Minimum 3 documents required for batch processing`;
335
  });
336
+
337
+ // Handle file upload display
338
+ document.getElementById('kat-files').addEventListener('change', function() {
339
+ if (this.files.length > 0) {
340
+ document.getElementById('kat-input').placeholder = `${this.files.length} file(s) selected for analysis`;
341
+ }
342
+ });
343
+
344
+ document.getElementById('deepseek-files').addEventListener('change', function() {
345
+ if (this.files.length > 0) {
346
+ document.getElementById('deepseek-input').placeholder = `${this.files.length} file(s) selected for analysis`;
347
+ }
348
+ });
349
+ </script>
350
  </body>
351
  </html>