Spaces:
Running
remplace darkbert. par c'est deux ia. Deux ia pour la paye ai
Browse filesimport os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="auto",
api_key=os.environ["HF_TOKEN"],
)
stream = client.chat.completions.create(
model="Kwaipilot/KAT-Dev",
messages=[
{
"role": "user",
"content": "What is the capital of France?"
}
],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content, end="")
ββββ
import os
from openai import OpenAI
client = OpenAI(
base_url="https://router.huggingface.co/v1",
api_key=os.environ["HF_TOKEN"],
)
stream = client.chat.completions.create(
model="deepseek-ai/DeepSeek-V3.1-Terminus",
messages=[
{
"role": "user",
"content": "What is the capital of France?"
}
],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content, end="")
- darkbert.html +87 -29
- index.html +7 -8
- investigations.html +3 -3
- monitoring.html +3 -3
|
@@ -3,8 +3,8 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
-
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
|
|
@@ -66,11 +66,11 @@
|
|
| 66 |
<i data-feather="trending-up" class="w-4 h-4"></i>
|
| 67 |
<span>Dashboard</span>
|
| 68 |
</a>
|
| 69 |
-
<a href="/
|
| 70 |
<i data-feather="brain" class="w-4 h-4"></i>
|
| 71 |
-
<span>
|
| 72 |
</a>
|
| 73 |
-
|
| 74 |
<i data-feather="search" class="w-4 h-4"></i>
|
| 75 |
<span>Investigations</span>
|
| 76 |
</a>
|
|
@@ -81,56 +81,114 @@
|
|
| 81 |
</div>
|
| 82 |
</div>
|
| 83 |
</nav>
|
| 84 |
-
|
| 85 |
<!-- Main Content -->
|
| 86 |
<main class="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
| 87 |
<div class="bg-white rounded-xl shadow-lg p-6 mb-8">
|
| 88 |
-
<h2 class="text-2xl font-bold text-gray-900 mb-6">
|
| 89 |
|
| 90 |
-
|
| 91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
<div>
|
| 93 |
<label class="block text-sm font-medium text-gray-700 mb-2">Client Type</label>
|
| 94 |
-
<select class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500">
|
| 95 |
<option value="police">Police Forces</option>
|
| 96 |
<option value="fiscal">Tax Administration</option>
|
| 97 |
<option value="customs">Customs Services</option>
|
| 98 |
<option value="court">Courts</option>
|
| 99 |
</select>
|
| 100 |
</div>
|
| 101 |
-
|
| 102 |
<div>
|
| 103 |
<label class="block text-sm font-medium text-gray-700 mb-2">Investigation Title</label>
|
| 104 |
-
<input type="text" placeholder="Ex: Criminal Network Investigation 2025" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500">
|
| 105 |
</div>
|
| 106 |
-
|
| 107 |
<div>
|
| 108 |
-
<label class="block text-sm font-medium text-gray-700 mb-2">
|
| 109 |
-
<select class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500">
|
| 110 |
-
<option value="
|
| 111 |
-
<option value="
|
| 112 |
-
<option value="
|
| 113 |
</select>
|
| 114 |
</div>
|
| 115 |
</div>
|
| 116 |
-
|
| 117 |
-
<div>
|
| 118 |
<label class="block text-sm font-medium text-gray-700 mb-2">Documents to Analyze (one per line)</label>
|
| 119 |
-
<textarea placeholder="Insert your documents here, one per line..." class="w-full h-
|
| 120 |
-
<p class="text-xs text-gray-500 mt-1">0 documents | Minimum 3 documents required</p>
|
| 121 |
</div>
|
| 122 |
</div>
|
| 123 |
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
|
|
|
| 129 |
</div>
|
| 130 |
</div>
|
| 131 |
</main>
|
| 132 |
-
|
| 133 |
-
<script>
|
| 134 |
feather.replace();
|
| 135 |
VANTA.GLOBE({
|
| 136 |
el: "#vanta-bg",
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>AI Analysis Suite | HTS Investigation Suite</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
|
|
|
|
| 66 |
<i data-feather="trending-up" class="w-4 h-4"></i>
|
| 67 |
<span>Dashboard</span>
|
| 68 |
</a>
|
| 69 |
+
<a href="/ai-analysis" class="flex items-center space-x-2 px-4 py-3 border-b-2 border-blue-400 text-blue-400 transition-colors">
|
| 70 |
<i data-feather="brain" class="w-4 h-4"></i>
|
| 71 |
+
<span>AI Analysis Suite</span>
|
| 72 |
</a>
|
| 73 |
+
<a href="/investigations" class="flex items-center space-x-2 px-4 py-3 border-b-2 border-transparent hover:border-gray-600 transition-colors">
|
| 74 |
<i data-feather="search" class="w-4 h-4"></i>
|
| 75 |
<span>Investigations</span>
|
| 76 |
</a>
|
|
|
|
| 81 |
</div>
|
| 82 |
</div>
|
| 83 |
</nav>
|
|
|
|
| 84 |
<!-- Main Content -->
|
| 85 |
<main class="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
| 86 |
<div class="bg-white rounded-xl shadow-lg p-6 mb-8">
|
| 87 |
+
<h2 class="text-2xl font-bold text-gray-900 mb-6">AI Analysis Suite</h2>
|
| 88 |
|
| 89 |
+
<!-- Model Selection -->
|
| 90 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
|
| 91 |
+
<!-- KAT-Dev Model -->
|
| 92 |
+
<div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl shadow-lg p-6 border border-blue-200">
|
| 93 |
+
<div class="flex items-center justify-between mb-4">
|
| 94 |
+
<div class="flex items-center space-x-3">
|
| 95 |
+
<div class="bg-blue-600 p-2 rounded-lg">
|
| 96 |
+
<i data-feather="cpu" class="text-white w-6 h-6"></i>
|
| 97 |
+
</div>
|
| 98 |
+
<div>
|
| 99 |
+
<h3 class="text-lg font-semibold text-gray-900">KAT-Dev Model</h3>
|
| 100 |
+
<p class="text-sm text-gray-600">Kwaipilot/KAT-Dev</p>
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
<span class="px-3 py-1 bg-green-100 text-green-800 text-xs font-medium rounded-full">Fast</span>
|
| 104 |
+
</div>
|
| 105 |
+
<p class="text-sm text-gray-700 mb-4">Specialized AI model for rapid analysis and processing of investigative data with enhanced security capabilities.</p>
|
| 106 |
+
<div class="space-y-3">
|
| 107 |
+
<div>
|
| 108 |
+
<label class="block text-sm font-medium text-gray-700 mb-2">Input Text</label>
|
| 109 |
+
<textarea 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>
|
| 110 |
+
</div>
|
| 111 |
+
<button 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">
|
| 112 |
+
<i data-feather="zap" class="w-4 h-4"></i>
|
| 113 |
+
Run KAT-Dev Analysis
|
| 114 |
+
</button>
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
|
| 118 |
+
<!-- DeepSeek-V3.1-Terminus Model -->
|
| 119 |
+
<div class="bg-gradient-to-br from-purple-50 to-purple-100 rounded-xl shadow-lg p-6 border border-purple-200">
|
| 120 |
+
<div class="flex items-center justify-between mb-4">
|
| 121 |
+
<div class="flex items-center space-x-3">
|
| 122 |
+
<div class="bg-purple-600 p-2 rounded-lg">
|
| 123 |
+
<i data-feather="brain" class="text-white w-6 h-6"></i>
|
| 124 |
+
</div>
|
| 125 |
+
<div>
|
| 126 |
+
<h3 class="text-lg font-semibold text-gray-900">DeepSeek-V3.1-Terminus</h3>
|
| 127 |
+
<p class="text-sm text-gray-600">deepseek-ai/DeepSeek-V3.1-Terminus</p>
|
| 128 |
+
</div>
|
| 129 |
+
</div>
|
| 130 |
+
<span class="px-3 py-1 bg-purple-100 text-purple-800 text-xs font-medium rounded-full">Advanced</span>
|
| 131 |
+
</div>
|
| 132 |
+
<p class="text-sm text-gray-700 mb-4">Advanced AI model for comprehensive analysis with deep contextual understanding and superior reasoning capabilities.</p>
|
| 133 |
+
<div class="space-y-3">
|
| 134 |
+
<div>
|
| 135 |
+
<label class="block text-sm font-medium text-gray-700 mb-2">Input Text</label>
|
| 136 |
+
<textarea 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>
|
| 137 |
+
</div>
|
| 138 |
+
<button 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">
|
| 139 |
+
<i data-feather="layers" class="w-4 h-4"></i>
|
| 140 |
+
Run DeepSeek Analysis
|
| 141 |
+
</button>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
</div>
|
| 145 |
+
|
| 146 |
+
<!-- Common Configuration -->
|
| 147 |
+
<div class="bg-gray-50 rounded-xl shadow-lg p-6 border border-gray-200">
|
| 148 |
+
<h3 class="text-lg font-semibold text-gray-900 mb-4">Analysis Configuration</h3>
|
| 149 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 150 |
<div>
|
| 151 |
<label class="block text-sm font-medium text-gray-700 mb-2">Client Type</label>
|
| 152 |
+
<select class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 bg-white">
|
| 153 |
<option value="police">Police Forces</option>
|
| 154 |
<option value="fiscal">Tax Administration</option>
|
| 155 |
<option value="customs">Customs Services</option>
|
| 156 |
<option value="court">Courts</option>
|
| 157 |
</select>
|
| 158 |
</div>
|
| 159 |
+
|
| 160 |
<div>
|
| 161 |
<label class="block text-sm font-medium text-gray-700 mb-2">Investigation Title</label>
|
| 162 |
+
<input type="text" placeholder="Ex: Criminal Network Investigation 2025" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 bg-white">
|
| 163 |
</div>
|
| 164 |
+
|
| 165 |
<div>
|
| 166 |
+
<label class="block text-sm font-medium text-gray-700 mb-2">Security Level</label>
|
| 167 |
+
<select class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 bg-white">
|
| 168 |
+
<option value="standard">Standard</option>
|
| 169 |
+
<option value="enhanced">Enhanced</option>
|
| 170 |
+
<option value="maximum">Maximum</option>
|
| 171 |
</select>
|
| 172 |
</div>
|
| 173 |
</div>
|
| 174 |
+
|
| 175 |
+
<div class="mt-6">
|
| 176 |
<label class="block text-sm font-medium text-gray-700 mb-2">Documents to Analyze (one per line)</label>
|
| 177 |
+
<textarea placeholder="Insert your documents here, one per line..." class="w-full h-32 p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 font-mono text-sm bg-white"></textarea>
|
| 178 |
+
<p class="text-xs text-gray-500 mt-1">0 documents | Minimum 3 documents required for batch processing</p>
|
| 179 |
</div>
|
| 180 |
</div>
|
| 181 |
|
| 182 |
+
<!-- Results Section -->
|
| 183 |
+
<div class="mt-8 bg-white rounded-xl shadow-lg p-6 border border-gray-200">
|
| 184 |
+
<h3 class="text-lg font-semibold text-gray-900 mb-4">Analysis Results</h3>
|
| 185 |
+
<div class="bg-gray-50 rounded-lg p-4 min-h-32">
|
| 186 |
+
<p class="text-gray-500 text-center">Run an analysis to see results here...</p>
|
| 187 |
+
</div>
|
| 188 |
</div>
|
| 189 |
</div>
|
| 190 |
</main>
|
| 191 |
+
<script>
|
|
|
|
| 192 |
feather.replace();
|
| 193 |
VANTA.GLOBE({
|
| 194 |
el: "#vanta-bg",
|
|
@@ -88,11 +88,11 @@
|
|
| 88 |
<i data-feather="trending-up" class="w-4 h-4"></i>
|
| 89 |
<span>Dashboard</span>
|
| 90 |
</a>
|
| 91 |
-
<a href="/
|
| 92 |
<i data-feather="brain" class="w-4 h-4"></i>
|
| 93 |
-
<span>
|
| 94 |
</a>
|
| 95 |
-
|
| 96 |
<i data-feather="search" class="w-4 h-4"></i>
|
| 97 |
<span>Investigations</span>
|
| 98 |
</a>
|
|
@@ -230,14 +230,13 @@
|
|
| 230 |
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 231 |
<div class="bg-white rounded-xl shadow-lg p-6 border border-gray-200">
|
| 232 |
<h3 class="text-lg font-semibold text-gray-900 mb-4">Start New Analysis</h3>
|
| 233 |
-
<p class="text-sm text-gray-600 mb-4">Initiate
|
| 234 |
-
<a href="/
|
| 235 |
<i data-feather="brain" class="w-4 h-4"></i>
|
| 236 |
-
<span>Launch
|
| 237 |
</a>
|
| 238 |
</div>
|
| 239 |
-
|
| 240 |
-
<div class="bg-white rounded-xl shadow-lg p-6 border border-gray-200">
|
| 241 |
<h3 class="text-lg font-semibold text-gray-900 mb-4">Recent Investigations</h3>
|
| 242 |
<div class="space-y-2">
|
| 243 |
<a href="/investigations/operation-midnight" class="block p-2 hover:bg-gray-50 rounded-lg text-sm">Operation Midnight</a>
|
|
|
|
| 88 |
<i data-feather="trending-up" class="w-4 h-4"></i>
|
| 89 |
<span>Dashboard</span>
|
| 90 |
</a>
|
| 91 |
+
<a href="/ai-analysis" class="flex items-center space-x-2 px-4 py-3 border-b-2 border-transparent hover:border-gray-600 transition-colors">
|
| 92 |
<i data-feather="brain" class="w-4 h-4"></i>
|
| 93 |
+
<span>AI Analysis Suite</span>
|
| 94 |
</a>
|
| 95 |
+
<a href="/investigations" class="flex items-center space-x-2 px-4 py-3 border-b-2 border-transparent hover:border-gray-600 transition-colors">
|
| 96 |
<i data-feather="search" class="w-4 h-4"></i>
|
| 97 |
<span>Investigations</span>
|
| 98 |
</a>
|
|
|
|
| 230 |
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 231 |
<div class="bg-white rounded-xl shadow-lg p-6 border border-gray-200">
|
| 232 |
<h3 class="text-lg font-semibold text-gray-900 mb-4">Start New Analysis</h3>
|
| 233 |
+
<p class="text-sm text-gray-600 mb-4">Initiate AI analysis with documents or text input</p>
|
| 234 |
+
<a href="/ai-analysis" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg flex items-center justify-center space-x-2">
|
| 235 |
<i data-feather="brain" class="w-4 h-4"></i>
|
| 236 |
+
<span>Launch AI Analysis</span>
|
| 237 |
</a>
|
| 238 |
</div>
|
| 239 |
+
<div class="bg-white rounded-xl shadow-lg p-6 border border-gray-200">
|
|
|
|
| 240 |
<h3 class="text-lg font-semibold text-gray-900 mb-4">Recent Investigations</h3>
|
| 241 |
<div class="space-y-2">
|
| 242 |
<a href="/investigations/operation-midnight" class="block p-2 hover:bg-gray-50 rounded-lg text-sm">Operation Midnight</a>
|
|
@@ -64,11 +64,11 @@
|
|
| 64 |
<i data-feather="trending-up" class="w-4 h-4"></i>
|
| 65 |
<span>Dashboard</span>
|
| 66 |
</a>
|
| 67 |
-
<a href="/
|
| 68 |
<i data-feather="brain" class="w-4 h-4"></i>
|
| 69 |
-
<span>
|
| 70 |
</a>
|
| 71 |
-
|
| 72 |
<i data-feather="search" class="w-4 h-4"></i>
|
| 73 |
<span>Investigations</span>
|
| 74 |
</a>
|
|
|
|
| 64 |
<i data-feather="trending-up" class="w-4 h-4"></i>
|
| 65 |
<span>Dashboard</span>
|
| 66 |
</a>
|
| 67 |
+
<a href="/ai-analysis" class="flex items-center space-x-2 px-4 py-3 border-b-2 border-transparent hover:border-gray-600 transition-colors">
|
| 68 |
<i data-feather="brain" class="w-4 h-4"></i>
|
| 69 |
+
<span>AI Analysis Suite</span>
|
| 70 |
</a>
|
| 71 |
+
<a href="/investigations" class="flex items-center space-x-2 px-4 py-3 border-b-2 border-blue-400 text-blue-400 transition-colors">
|
| 72 |
<i data-feather="search" class="w-4 h-4"></i>
|
| 73 |
<span>Investigations</span>
|
| 74 |
</a>
|
|
@@ -88,11 +88,11 @@
|
|
| 88 |
<i data-feather="trending-up" class="w-4 h-4"></i>
|
| 89 |
<span>Dashboard</span>
|
| 90 |
</a>
|
| 91 |
-
<a href="/
|
| 92 |
<i data-feather="brain" class="w-4 h-4"></i>
|
| 93 |
-
<span>
|
| 94 |
</a>
|
| 95 |
-
|
| 96 |
<i data-feather="search" class="w-4 h-4"></i>
|
| 97 |
<span>Investigations</span>
|
| 98 |
</a>
|
|
|
|
| 88 |
<i data-feather="trending-up" class="w-4 h-4"></i>
|
| 89 |
<span>Dashboard</span>
|
| 90 |
</a>
|
| 91 |
+
<a href="/ai-analysis" class="flex items-center space-x-2 px-4 py-3 border-b-2 border-transparent hover:border-gray-600 transition-colors">
|
| 92 |
<i data-feather="brain" class="w-4 h-4"></i>
|
| 93 |
+
<span>AI Analysis Suite</span>
|
| 94 |
</a>
|
| 95 |
+
<a href="/investigations" class="flex items-center space-x-2 px-4 py-3 border-b-2 border-transparent hover:border-gray-600 transition-colors">
|
| 96 |
<i data-feather="search" class="w-4 h-4"></i>
|
| 97 |
<span>Investigations</span>
|
| 98 |
</a>
|