Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +680 -19
- prompts.txt +0 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 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: neuroinsight
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: yellow
|
| 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,680 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="pt-BR">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>NeuroInsight EEG - Plataforma Avançada de Análise Neural</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 |
+
.eeg-canvas {
|
| 11 |
+
background-color: #0f172a;
|
| 12 |
+
height: 350px;
|
| 13 |
+
border-radius: 8px;
|
| 14 |
+
position: relative;
|
| 15 |
+
overflow: hidden;
|
| 16 |
+
}
|
| 17 |
+
.electrode-map {
|
| 18 |
+
background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
|
| 19 |
+
border-radius: 8px;
|
| 20 |
+
position: relative;
|
| 21 |
+
}
|
| 22 |
+
.electrode {
|
| 23 |
+
position: absolute;
|
| 24 |
+
width: 26px;
|
| 25 |
+
height: 26px;
|
| 26 |
+
border-radius: 50%;
|
| 27 |
+
background: #3b82f6;
|
| 28 |
+
display: flex;
|
| 29 |
+
align-items: center;
|
| 30 |
+
justify-content: center;
|
| 31 |
+
color: white;
|
| 32 |
+
font-weight: bold;
|
| 33 |
+
font-size: 11px;
|
| 34 |
+
cursor: pointer;
|
| 35 |
+
transition: all 0.2s;
|
| 36 |
+
border: 2px solid #1e40af;
|
| 37 |
+
}
|
| 38 |
+
.electrode:hover {
|
| 39 |
+
transform: scale(1.3);
|
| 40 |
+
background: #2563eb;
|
| 41 |
+
}
|
| 42 |
+
.heat-map {
|
| 43 |
+
position: absolute;
|
| 44 |
+
border-radius: 50%;
|
| 45 |
+
opacity: 0.4;
|
| 46 |
+
}
|
| 47 |
+
.analysis-card {
|
| 48 |
+
transition: all 0.3s ease;
|
| 49 |
+
border-left-width: 4px;
|
| 50 |
+
}
|
| 51 |
+
.analysis-card:hover {
|
| 52 |
+
transform: translateY(-3px);
|
| 53 |
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
|
| 54 |
+
}
|
| 55 |
+
@keyframes fadeIn {
|
| 56 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 57 |
+
to { opacity: 1; transform: translateY(0); }
|
| 58 |
+
}
|
| 59 |
+
.fade-in {
|
| 60 |
+
animation: fadeIn 0.6s ease-out forwards;
|
| 61 |
+
}
|
| 62 |
+
.signal-wave {
|
| 63 |
+
position: absolute;
|
| 64 |
+
height: 100%;
|
| 65 |
+
width: 100%;
|
| 66 |
+
background: repeating-linear-gradient(
|
| 67 |
+
0deg,
|
| 68 |
+
transparent,
|
| 69 |
+
transparent 19px,
|
| 70 |
+
#334155 19px,
|
| 71 |
+
#334155 20px
|
| 72 |
+
);
|
| 73 |
+
}
|
| 74 |
+
.montage-selector {
|
| 75 |
+
scrollbar-width: thin;
|
| 76 |
+
scrollbar-color: #4b5563 #1f2937;
|
| 77 |
+
}
|
| 78 |
+
.montage-selector::-webkit-scrollbar {
|
| 79 |
+
height: 6px;
|
| 80 |
+
}
|
| 81 |
+
.montage-selector::-webkit-scrollbar-track {
|
| 82 |
+
background: #1f2937;
|
| 83 |
+
border-radius: 3px;
|
| 84 |
+
}
|
| 85 |
+
.montage-selector::-webkit-scrollbar-thumb {
|
| 86 |
+
background-color: #4b5563;
|
| 87 |
+
border-radius: 3px;
|
| 88 |
+
}
|
| 89 |
+
</style>
|
| 90 |
+
</head>
|
| 91 |
+
<body class="bg-slate-900 text-slate-100 font-sans">
|
| 92 |
+
<!-- Header -->
|
| 93 |
+
<header class="bg-slate-800 shadow-xl">
|
| 94 |
+
<div class="container mx-auto px-6 py-4 flex justify-between items-center">
|
| 95 |
+
<div class="flex items-center space-x-4">
|
| 96 |
+
<i class="fas fa-brain text-blue-400 text-4xl"></i>
|
| 97 |
+
<h1 class="text-2xl font-bold">
|
| 98 |
+
<span class="text-blue-400">Neuro</span><span>Insight</span> <span class="text-sm bg-blue-700 px-3 py-1 rounded-full">EEG AI</span>
|
| 99 |
+
</h1>
|
| 100 |
+
</div>
|
| 101 |
+
<div class="flex items-center space-x-6">
|
| 102 |
+
<button id="uploadBtn" class="flex items-center space-x-2 bg-blue-600 hover:bg-blue-700 px-5 py-2 rounded-lg transition-all duration-200 shadow-md">
|
| 103 |
+
<i class="fas fa-cloud-upload-alt"></i>
|
| 104 |
+
<span>Carregar EEG</span>
|
| 105 |
+
</button>
|
| 106 |
+
<input type="file" id="eegUpload" accept=".edf,.bdf,.set,.fif" class="hidden">
|
| 107 |
+
<div class="relative group">
|
| 108 |
+
<img src="https://randomuser.me/api/portraits/med/men/75.jpg" alt="User" class="w-10 h-10 rounded-full cursor-pointer border-2 border-slate-600 group-hover:border-blue-400 transition">
|
| 109 |
+
<div class="absolute -right-1 -bottom-1 bg-green-500 w-3 h-3 rounded-full border-2 border-slate-800"></div>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
</header>
|
| 114 |
+
|
| 115 |
+
<!-- Main Content -->
|
| 116 |
+
<main class="container mx-auto px-4 py-6">
|
| 117 |
+
<div class="grid grid-cols-1 lg:grid-cols-4 gap-8">
|
| 118 |
+
<!-- Left Sidebar -->
|
| 119 |
+
<div class="lg:col-span-1 space-y-6">
|
| 120 |
+
<!-- Patient Info -->
|
| 121 |
+
<div class="bg-slate-800 rounded-xl p-5 shadow-lg">
|
| 122 |
+
<div class="flex items-center space-x-4 mb-4">
|
| 123 |
+
<div class="relative">
|
| 124 |
+
<img src="https://randomuser.me/api/portraits/med/women/68.jpg" alt="Patient" class="w-16 h-16 rounded-full border-2 border-slate-600">
|
| 125 |
+
<div class="absolute -right-1 -bottom-1 bg-blue-500 w-4 h-4 rounded-full border-2 border-slate-800"></div>
|
| 126 |
+
</div>
|
| 127 |
+
<div>
|
| 128 |
+
<h3 class="font-bold">Dr. Rafael Costa</h3>
|
| 129 |
+
<p class="text-sm text-slate-400">Neurocirurgião</p>
|
| 130 |
+
</div>
|
| 131 |
+
</div>
|
| 132 |
+
<div class="space-y-3">
|
| 133 |
+
<div>
|
| 134 |
+
<p class="text-xs text-slate-400">Paciente</p>
|
| 135 |
+
<p class="font-medium">Ana Lúcia Mendes, 38 anos</p>
|
| 136 |
+
</div>
|
| 137 |
+
<div>
|
| 138 |
+
<p class="text-xs text-slate-400">ID do Exame</p>
|
| 139 |
+
<p class="font-mono text-blue-400">EEG-2023-09-7821</p>
|
| 140 |
+
</div>
|
| 141 |
+
<div>
|
| 142 |
+
<p class="text-xs text-slate-400">Data</p>
|
| 143 |
+
<p class="font-medium">22/09/2023 09:15</p>
|
| 144 |
+
</div>
|
| 145 |
+
<div>
|
| 146 |
+
<p class="text-xs text-slate-400">Equipamento</p>
|
| 147 |
+
<p class="font-medium">ANT Neuro eego mylab</p>
|
| 148 |
+
</div>
|
| 149 |
+
</div>
|
| 150 |
+
</div>
|
| 151 |
+
|
| 152 |
+
<!-- Montage Selector -->
|
| 153 |
+
<div class="bg-slate-800 rounded-xl p-5 shadow-lg">
|
| 154 |
+
<h3 class="font-bold mb-3 flex items-center justify-between">
|
| 155 |
+
<span>Configuração de Montagem</span>
|
| 156 |
+
<i class="fas fa-sliders-h text-blue-400"></i>
|
| 157 |
+
</h3>
|
| 158 |
+
<div class="montage-selector overflow-x-auto whitespace-nowrap pb-2 space-x-2">
|
| 159 |
+
<button class="bg-blue-600 px-4 py-2 rounded-lg text-sm inline-flex items-center">
|
| 160 |
+
<i class="fas fa-map-marked-alt mr-2"></i> 10-20
|
| 161 |
+
</button>
|
| 162 |
+
<button class="bg-slate-700 hover:bg-slate-600 px-4 py-2 rounded-lg text-sm inline-flex items-center">
|
| 163 |
+
<i class="fas fa-route mr-2"></i> Bipolar
|
| 164 |
+
</button>
|
| 165 |
+
<button class="bg-slate-700 hover:bg-slate-600 px-4 py-2 rounded-lg text-sm inline-flex items-center">
|
| 166 |
+
<i class="fas fa-project-diagram mr-2"></i> Referencial
|
| 167 |
+
</button>
|
| 168 |
+
<button class="bg-slate-700 hover:bg-slate-600 px-4 py-2 rounded-lg text-sm inline-flex items-center">
|
| 169 |
+
<i class="fas fa-atom mr-2"></i> Laplaciano
|
| 170 |
+
</button>
|
| 171 |
+
</div>
|
| 172 |
+
</div>
|
| 173 |
+
|
| 174 |
+
<!-- Electrode Status -->
|
| 175 |
+
<div class="bg-slate-800 rounded-xl p-5 shadow-lg">
|
| 176 |
+
<h3 class="font-bold mb-3 flex items-center justify-between">
|
| 177 |
+
<span>Status dos Eletrodos</span>
|
| 178 |
+
<span class="text-xs bg-green-800 text-green-300 px-3 py-1 rounded-full flex items-center">
|
| 179 |
+
<i class="fas fa-check-circle mr-1"></i> Qualidade: 97%
|
| 180 |
+
</span>
|
| 181 |
+
</h3>
|
| 182 |
+
<div class="grid grid-cols-3 gap-3">
|
| 183 |
+
<div class="bg-green-900 bg-opacity-40 p-2 rounded text-center border border-green-800">
|
| 184 |
+
<p class="text-xs font-bold">Fp1</p>
|
| 185 |
+
<p class="text-green-400 text-xs">4.8kΩ</p>
|
| 186 |
+
</div>
|
| 187 |
+
<div class="bg-green-900 bg-opacity-40 p-2 rounded text-center border border-green-800">
|
| 188 |
+
<p class="text-xs font-bold">Fp2</p>
|
| 189 |
+
<p class="text-green-400 text-xs">5.1kΩ</p>
|
| 190 |
+
</div>
|
| 191 |
+
<div class="bg-green-900 bg-opacity-40 p-2 rounded text-center border border-green-800">
|
| 192 |
+
<p class="text-xs font-bold">F3</p>
|
| 193 |
+
<p class="text-green-400 text-xs">4.9kΩ</p>
|
| 194 |
+
</div>
|
| 195 |
+
<div class="bg-green-900 bg-opacity-40 p-2 rounded text-center border border-green-800">
|
| 196 |
+
<p class="text-xs font-bold">F4</p>
|
| 197 |
+
<p class="text-green-400 text-xs">5.3kΩ</p>
|
| 198 |
+
</div>
|
| 199 |
+
<div class="bg-green-900 bg-opacity-40 p-2 rounded text-center border border-green-800">
|
| 200 |
+
<p class="text-xs font-bold">C3</p>
|
| 201 |
+
<p class="text-green-400 text-xs">5.0kΩ</p>
|
| 202 |
+
</div>
|
| 203 |
+
<div class="bg-green-900 bg-opacity-40 p-2 rounded text-center border border-green-800">
|
| 204 |
+
<p class="text-xs font-bold">C4</p>
|
| 205 |
+
<p class="text-green-400 text-xs">5.2kΩ</p>
|
| 206 |
+
</div>
|
| 207 |
+
<div class="bg-green-900 bg-opacity-40 p-2 rounded text-center border border-green-800">
|
| 208 |
+
<p class="text-xs font-bold">P3</p>
|
| 209 |
+
<p class="text-green-400 text-xs">5.4kΩ</p>
|
| 210 |
+
</div>
|
| 211 |
+
<div class="bg-green-900 bg-opacity-40 p-2 rounded text-center border border-green-800">
|
| 212 |
+
<p class="text-xs font-bold">P4</p>
|
| 213 |
+
<p class="text-green-400 text-xs">5.6kΩ</p>
|
| 214 |
+
</div>
|
| 215 |
+
<div class="bg-green-900 bg-opacity-40 p-2 rounded text-center border border-green-800">
|
| 216 |
+
<p class="text-xs font-bold">O1</p>
|
| 217 |
+
<p class="text-green-400 text-xs">4.7kΩ</p>
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
</div>
|
| 221 |
+
|
| 222 |
+
<!-- Processing Controls -->
|
| 223 |
+
<div class="bg-slate-800 rounded-xl p-5 shadow-lg">
|
| 224 |
+
<h3 class="font-bold mb-3 flex items-center justify-between">
|
| 225 |
+
<span>Processamento de Sinais</span>
|
| 226 |
+
<i class="fas fa-microchip text-blue-400"></i>
|
| 227 |
+
</h3>
|
| 228 |
+
<div class="space-y-4">
|
| 229 |
+
<div>
|
| 230 |
+
<label class="block text-sm text-slate-400 mb-1">Filtro Notch</label>
|
| 231 |
+
<select class="w-full bg-slate-700 border border-slate-600 rounded-lg px-4 py-2 text-sm focus:border-blue-500 focus:ring-1 focus:ring-blue-500">
|
| 232 |
+
<option>60 Hz (Americas)</option>
|
| 233 |
+
<option selected>50 Hz (Brasil/Europa)</option>
|
| 234 |
+
<option>Desativado</option>
|
| 235 |
+
</select>
|
| 236 |
+
</div>
|
| 237 |
+
<div>
|
| 238 |
+
<label class="block text-sm text-slate-400 mb-1">Filtro Passa-Baixa</label>
|
| 239 |
+
<div class="flex items-center space-x-3">
|
| 240 |
+
<input type="range" min="1" max="100" value="45" class="w-full h-2 bg-slate-700 rounded-lg appearance-none cursor-pointer" id="lowPassFilter">
|
| 241 |
+
<span class="text-sm w-12 text-center" id="lowPassValue">45 Hz</span>
|
| 242 |
+
</div>
|
| 243 |
+
</div>
|
| 244 |
+
<div>
|
| 245 |
+
<label class="block text-sm text-slate-400 mb-1">Filtro Passa-Alta</label>
|
| 246 |
+
<div class="flex items-center space-x-3">
|
| 247 |
+
<input type="range" min="0.1" max="10" step="0.1" value="0.5" class="w-full h-2 bg-slate-700 rounded-lg appearance-none cursor-pointer" id="highPassFilter">
|
| 248 |
+
<span class="text-sm w-12 text-center" id="highPassValue">0.5 Hz</span>
|
| 249 |
+
</div>
|
| 250 |
+
</div>
|
| 251 |
+
<div class="pt-3">
|
| 252 |
+
<button id="processBtn" class="w-full bg-blue-600 hover:bg-blue-700 px-5 py-3 rounded-lg flex items-center justify-center space-x-3 transition-all duration-200 shadow-md">
|
| 253 |
+
<i class="fas fa-bolt"></i>
|
| 254 |
+
<span class="font-medium">Processar com IA</span>
|
| 255 |
+
</button>
|
| 256 |
+
</div>
|
| 257 |
+
</div>
|
| 258 |
+
</div>
|
| 259 |
+
</div>
|
| 260 |
+
|
| 261 |
+
<!-- Main EEG Display -->
|
| 262 |
+
<div class="lg:col-span-3 space-y-6">
|
| 263 |
+
<!-- Signal Display -->
|
| 264 |
+
<div class="bg-slate-800 rounded-xl p-5 shadow-lg">
|
| 265 |
+
<div class="flex justify-between items-center mb-5">
|
| 266 |
+
<h2 class="font-bold text-xl flex items-center">
|
| 267 |
+
<i class="fas fa-wave-square text-blue-400 mr-3"></i>
|
| 268 |
+
<span>Visualização do Sinal EEG</span>
|
| 269 |
+
</h2>
|
| 270 |
+
<div class="flex space-x-3">
|
| 271 |
+
<button class="bg-slate-700 hover:bg-slate-600 p-2.5 rounded-lg transition-all">
|
| 272 |
+
<i class="fas fa-search-plus"></i>
|
| 273 |
+
</button>
|
| 274 |
+
<button class="bg-slate-700 hover:bg-slate-600 p-2.5 rounded-lg transition-all">
|
| 275 |
+
<i class="fas fa-search-minus"></i>
|
| 276 |
+
</button>
|
| 277 |
+
<button class="bg-slate-700 hover:bg-slate-600 p-2.5 rounded-lg transition-all">
|
| 278 |
+
<i class="fas fa-arrows-alt-h"></i>
|
| 279 |
+
</button>
|
| 280 |
+
<button class="bg-blue-600 hover:bg-blue-700 p-2.5 rounded-lg transition-all">
|
| 281 |
+
<i class="fas fa-video"></i>
|
| 282 |
+
</button>
|
| 283 |
+
</div>
|
| 284 |
+
</div>
|
| 285 |
+
|
| 286 |
+
<div class="eeg-canvas mb-5" id="eegPlot">
|
| 287 |
+
<div class="signal-wave"></div>
|
| 288 |
+
<div class="absolute inset-0 flex items-center justify-center text-slate-500">
|
| 289 |
+
<div class="text-center">
|
| 290 |
+
<i class="fas fa-cloud-upload-alt text-4xl mb-3"></i>
|
| 291 |
+
<p>Carregue um arquivo EEG para visualização</p>
|
| 292 |
+
<p class="text-sm mt-1">Formatos suportados: .edf, .bdf, .set, .fif</p>
|
| 293 |
+
</div>
|
| 294 |
+
</div>
|
| 295 |
+
</div>
|
| 296 |
+
|
| 297 |
+
<div class="flex justify-between items-center text-sm">
|
| 298 |
+
<div class="flex space-x-5">
|
| 299 |
+
<div>
|
| 300 |
+
<span class="text-slate-400">Taxa de amostragem:</span>
|
| 301 |
+
<span class="font-mono">-</span>
|
| 302 |
+
</div>
|
| 303 |
+
<div>
|
| 304 |
+
<span class="text-slate-400">Resolução:</span>
|
| 305 |
+
<span class="font-mono">-</span>
|
| 306 |
+
</div>
|
| 307 |
+
<div>
|
| 308 |
+
<span class="text-slate-400">Duração:</span>
|
| 309 |
+
<span class="font-mono">-</span>
|
| 310 |
+
</div>
|
| 311 |
+
</div>
|
| 312 |
+
<div class="flex space-x-3">
|
| 313 |
+
<button class="bg-slate-700 hover:bg-slate-600 px-4 py-1.5 rounded-lg text-sm flex items-center">
|
| 314 |
+
<i class="fas fa-pause mr-2"></i> Pausar
|
| 315 |
+
</button>
|
| 316 |
+
<button class="bg-blue-600 hover:bg-blue-700 px-4 py-1.5 rounded-lg text-sm flex items-center">
|
| 317 |
+
<i class="fas fa-sync-alt mr-2"></i> Atualizar
|
| 318 |
+
</button>
|
| 319 |
+
</div>
|
| 320 |
+
</div>
|
| 321 |
+
</div>
|
| 322 |
+
|
| 323 |
+
<!-- Topography and Analysis -->
|
| 324 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 325 |
+
<!-- Topography Map -->
|
| 326 |
+
<div class="bg-slate-800 rounded-xl p-5 shadow-lg">
|
| 327 |
+
<h3 class="font-bold mb-4 flex items-center">
|
| 328 |
+
<i class="fas fa-map-marked-alt text-blue-400 mr-3"></i>
|
| 329 |
+
<span>Topografia Cerebral</span>
|
| 330 |
+
</h3>
|
| 331 |
+
<div class="electrode-map h-80 mb-4">
|
| 332 |
+
<!-- Scalp outline -->
|
| 333 |
+
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-3/4 h-3/4 bg-slate-900 rounded-full border-2 border-slate-600"></div>
|
| 334 |
+
|
| 335 |
+
<!-- Electrodes positioned on a scalp map -->
|
| 336 |
+
<div class="electrode" style="top: 12%; left: 30%;">Fp1</div>
|
| 337 |
+
<div class="electrode" style="top: 12%; left: 70%;">Fp2</div>
|
| 338 |
+
<div class="electrode" style="top: 22%; left: 25%;">F7</div>
|
| 339 |
+
<div class="electrode" style="top: 22%; left: 50%;">Fz</div>
|
| 340 |
+
<div class="electrode" style="top: 22%; left: 75%;">F8</div>
|
| 341 |
+
<div class="electrode" style="top: 32%; left: 30%;">F3</div>
|
| 342 |
+
<div class="electrode" style="top: 32%; left: 70%;">F4</div>
|
| 343 |
+
<div class="electrode" style="top: 42%; left: 20%;">T7</div>
|
| 344 |
+
<div class="electrode" style="top: 42%; left: 50%;">Cz</div>
|
| 345 |
+
<div class="electrode" style="top: 42%; left: 80%;">T8</div>
|
| 346 |
+
<div class="electrode" style="top: 52%; left: 30%;">C3</div>
|
| 347 |
+
<div class="electrode" style="top: 52%; left: 70%;">C4</div>
|
| 348 |
+
<div class="electrode" style="top: 62%; left: 25%;">P7</div>
|
| 349 |
+
<div class="electrode" style="top: 62%; left: 50%;">Pz</div>
|
| 350 |
+
<div class="electrode" style="top: 62%; left: 75%;">P8</div>
|
| 351 |
+
<div class="electrode" style="top: 72%; left: 30%;">P3</div>
|
| 352 |
+
<div class="electrode" style="top: 72%; left: 70%;">P4</div>
|
| 353 |
+
<div class="electrode" style="top: 82%; left: 40%;">O1</div>
|
| 354 |
+
<div class="electrode" style="top: 82%; left: 60%;">O2</div>
|
| 355 |
+
|
| 356 |
+
<!-- Topography heat maps -->
|
| 357 |
+
<div class="heat-map" style="width: 80%; height: 80%; top: 10%; left: 10%; background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, rgba(59, 130, 246, 0) 70%);"></div>
|
| 358 |
+
<div class="heat-map" style="width: 60%; height: 60%; top: 20%; left: 20%; background: radial-gradient(circle, rgba(239, 68, 68, 0.6) 0%, rgba(239, 68, 68, 0) 70%);"></div>
|
| 359 |
+
<div class="heat-map" style="width: 40%; height: 40%; top: 30%; left: 30%; background: radial-gradient(circle, rgba(16, 185, 129, 0.6) 0%, rgba(16, 185, 129, 0) 70%);"></div>
|
| 360 |
+
</div>
|
| 361 |
+
<div class="flex justify-between text-sm">
|
| 362 |
+
<div class="flex items-center">
|
| 363 |
+
<div class="w-3 h-3 rounded-full bg-blue-500 mr-2"></div>
|
| 364 |
+
<span>Potencial Negativo</span>
|
| 365 |
+
</div>
|
| 366 |
+
<div class="flex items-center">
|
| 367 |
+
<div class="w-3 h-3 rounded-full bg-red-500 mr-2"></div>
|
| 368 |
+
<span>Potencial Positivo</span>
|
| 369 |
+
</div>
|
| 370 |
+
</div>
|
| 371 |
+
</div>
|
| 372 |
+
|
| 373 |
+
<!-- Frequency Analysis -->
|
| 374 |
+
<div class="bg-slate-800 rounded-xl p-5 shadow-lg">
|
| 375 |
+
<h3 class="font-bold mb-4 flex items-center">
|
| 376 |
+
<i class="fas fa-chart-line text-blue-400 mr-3"></i>
|
| 377 |
+
<span>Análise de Frequência</span>
|
| 378 |
+
</h3>
|
| 379 |
+
<div class="bg-slate-900 rounded-lg p-4 mb-4">
|
| 380 |
+
<div class="flex justify-between text-xs mb-2">
|
| 381 |
+
<span>0 Hz</span>
|
| 382 |
+
<span class="text-blue-400">Delta</span>
|
| 383 |
+
<span class="text-green-400">Theta</span>
|
| 384 |
+
<span class="text-yellow-400">Alpha</span>
|
| 385 |
+
<span class="text-red-400">Beta</span>
|
| 386 |
+
<span class="text-purple-400">Gamma</span>
|
| 387 |
+
</div>
|
| 388 |
+
<div class="w-full bg-slate-700 h-3 rounded-full overflow-hidden">
|
| 389 |
+
<div class="h-full bg-gradient-to-r from-blue-500 via-green-500 to-yellow-500 via-red-500 to-purple-500" style="width: 100%;"></div>
|
| 390 |
+
</div>
|
| 391 |
+
</div>
|
| 392 |
+
<div class="grid grid-cols-2 gap-4">
|
| 393 |
+
<div class="bg-slate-700 rounded-lg p-4">
|
| 394 |
+
<div class="text-center mb-2">
|
| 395 |
+
<p class="text-xs text-slate-400">Pico Alpha</p>
|
| 396 |
+
<p class="font-bold text-yellow-400 text-xl">- Hz</p>
|
| 397 |
+
</div>
|
| 398 |
+
<div class="h-24 bg-slate-800 rounded flex items-center justify-center text-slate-600">
|
| 399 |
+
<i class="fas fa-wave-square text-2xl"></i>
|
| 400 |
+
</div>
|
| 401 |
+
</div>
|
| 402 |
+
<div class="bg-slate-700 rounded-lg p-4">
|
| 403 |
+
<div class="text-center mb-2">
|
| 404 |
+
<p class="text-xs text-slate-400">Relação Theta/Beta</p>
|
| 405 |
+
<p class="font-bold text-purple-400 text-xl">-</p>
|
| 406 |
+
</div>
|
| 407 |
+
<div class="h-24 bg-slate-800 rounded flex items-center justify-center text-slate-600">
|
| 408 |
+
<i class="fas fa-percentage text-2xl"></i>
|
| 409 |
+
</div>
|
| 410 |
+
</div>
|
| 411 |
+
</div>
|
| 412 |
+
</div>
|
| 413 |
+
</div>
|
| 414 |
+
|
| 415 |
+
<!-- Deep Learning Analysis -->
|
| 416 |
+
<div class="bg-slate-800 rounded-xl p-5 shadow-lg">
|
| 417 |
+
<div class="flex justify-between items-center mb-5">
|
| 418 |
+
<h3 class="font-bold text-xl flex items-center">
|
| 419 |
+
<i class="fas fa-robot text-blue-400 mr-3"></i>
|
| 420 |
+
<span>Análise por Deep Learning</span>
|
| 421 |
+
</h3>
|
| 422 |
+
<div class="flex items-center space-x-3">
|
| 423 |
+
<span class="text-xs bg-blue-800 text-blue-300 px-3 py-1 rounded-full">Modelo: EEGNet 4.2</span>
|
| 424 |
+
<span class="text-xs bg-green-800 text-green-300 px-3 py-1 rounded-full">Acurácia: 97.3%</span>
|
| 425 |
+
</div>
|
| 426 |
+
</div>
|
| 427 |
+
|
| 428 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-5" id="analysisResults">
|
| 429 |
+
<!-- Placeholder for analysis cards -->
|
| 430 |
+
<div class="bg-slate-700 rounded-lg p-5 flex items-center justify-center h-48 text-slate-500">
|
| 431 |
+
<div class="text-center">
|
| 432 |
+
<i class="fas fa-brain text-3xl mb-3"></i>
|
| 433 |
+
<p>Processe o EEG para obter análise</p>
|
| 434 |
+
</div>
|
| 435 |
+
</div>
|
| 436 |
+
<div class="bg-slate-700 rounded-lg p-5 flex items-center justify-center h-48 text-slate-500">
|
| 437 |
+
<div class="text-center">
|
| 438 |
+
<i class="fas fa-project-diagram text-3xl mb-3"></i>
|
| 439 |
+
<p>Detecção de anomalias neurais</p>
|
| 440 |
+
</div>
|
| 441 |
+
</div>
|
| 442 |
+
<div class="bg-slate-700 rounded-lg p-5 flex items-center justify-center h-48 text-slate-500">
|
| 443 |
+
<div class="text-center">
|
| 444 |
+
<i class="fas fa-dna text-3xl mb-3"></i>
|
| 445 |
+
<p>Padrões de atividade cerebral</p>
|
| 446 |
+
</div>
|
| 447 |
+
</div>
|
| 448 |
+
</div>
|
| 449 |
+
</div>
|
| 450 |
+
|
| 451 |
+
<!-- Neurologist Report -->
|
| 452 |
+
<div class="bg-slate-800 rounded-xl p-5 shadow-lg">
|
| 453 |
+
<div class="flex justify-between items-center mb-5">
|
| 454 |
+
<h3 class="font-bold text-xl flex items-center">
|
| 455 |
+
<i class="fas fa-file-medical-alt text-blue-400 mr-3"></i>
|
| 456 |
+
<span>Relatório Neurológico Automatizado</span>
|
| 457 |
+
</h3>
|
| 458 |
+
<button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg text-sm flex items-center">
|
| 459 |
+
<i class="fas fa-file-pdf mr-2"></i> Exportar PDF
|
| 460 |
+
</button>
|
| 461 |
+
</div>
|
| 462 |
+
|
| 463 |
+
<div class="bg-slate-900 rounded-lg p-5">
|
| 464 |
+
<div class="prose prose-invert max-w-none text-sm">
|
| 465 |
+
<div id="reportContent" class="text-center py-10 text-slate-500">
|
| 466 |
+
<i class="fas fa-file-alt text-4xl mb-4"></i>
|
| 467 |
+
<p class="text-lg">Relatório médico completo será gerado após processamento</p>
|
| 468 |
+
<p class="text-sm mt-2">Incluindo achados, impressão diagnóstica e recomendações</p>
|
| 469 |
+
</div>
|
| 470 |
+
</div>
|
| 471 |
+
</div>
|
| 472 |
+
</div>
|
| 473 |
+
</div>
|
| 474 |
+
</div>
|
| 475 |
+
</main>
|
| 476 |
+
|
| 477 |
+
<!-- Footer -->
|
| 478 |
+
<footer class="bg-slate-800 py-8 mt-10">
|
| 479 |
+
<div class="container mx-auto px-6">
|
| 480 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
| 481 |
+
<div class="mb-4 md:mb-0">
|
| 482 |
+
<p class="text-sm text-slate-400">© 2023 NeuroInsight EEG - Plataforma de Análise Neural Avançada</p>
|
| 483 |
+
<p class="text-xs text-slate-600">Tecnologia de deep learning aplicada à neurociência clínica</p>
|
| 484 |
+
</div>
|
| 485 |
+
<div class="flex space-x-6">
|
| 486 |
+
<a href="#" class="text-slate-400 hover:text-blue-400 transition-colors duration-200 text-xl">
|
| 487 |
+
<i class="fab fa-github"></i>
|
| 488 |
+
</a>
|
| 489 |
+
<a href="#" class="text-slate-400 hover:text-blue-400 transition-colors duration-200 text-xl">
|
| 490 |
+
<i class="fab fa-researchgate"></i>
|
| 491 |
+
</a>
|
| 492 |
+
<a href="#" class="text-slate-400 hover:text-blue-400 transition-colors duration-200 text-xl">
|
| 493 |
+
<i class="fas fa-book"></i>
|
| 494 |
+
</a>
|
| 495 |
+
<a href="#" class="text-slate-400 hover:text-blue-400 transition-colors duration-200 text-xl">
|
| 496 |
+
<i class="fas fa-question-circle"></i>
|
| 497 |
+
</a>
|
| 498 |
+
</div>
|
| 499 |
+
</div>
|
| 500 |
+
</div>
|
| 501 |
+
</footer>
|
| 502 |
+
|
| 503 |
+
<script>
|
| 504 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 505 |
+
// File upload handling
|
| 506 |
+
const uploadBtn = document.getElementById('uploadBtn');
|
| 507 |
+
const eegUpload = document.getElementById('eegUpload');
|
| 508 |
+
|
| 509 |
+
uploadBtn.addEventListener('click', function() {
|
| 510 |
+
eegUpload.click();
|
| 511 |
+
});
|
| 512 |
+
|
| 513 |
+
eegUpload.addEventListener('change', function(e) {
|
| 514 |
+
if (e.target.files.length > 0) {
|
| 515 |
+
const fileName = e.target.files[0].name;
|
| 516 |
+
const eegPlot = document.getElementById('eegPlot');
|
| 517 |
+
|
| 518 |
+
// Simulate file loading
|
| 519 |
+
eegPlot.innerHTML = `
|
| 520 |
+
<div class="signal-wave"></div>
|
| 521 |
+
<div class="absolute inset-0 flex items-center justify-center">
|
| 522 |
+
<div class="text-center fade-in">
|
| 523 |
+
<i class="fas fa-spinner fa-spin text-blue-400 text-4xl mb-3"></i>
|
| 524 |
+
<p>Processando arquivo: ${fileName}</p>
|
| 525 |
+
<p class="text-sm mt-2 text-slate-400">Aplicando filtros e preparando visualização...</p>
|
| 526 |
+
</div>
|
| 527 |
+
</div>
|
| 528 |
+
`;
|
| 529 |
+
|
| 530 |
+
// Simulate successful load after 2 seconds
|
| 531 |
+
setTimeout(function() {
|
| 532 |
+
eegPlot.innerHTML = `
|
| 533 |
+
<div class="signal-wave"></div>
|
| 534 |
+
<div class="absolute inset-0 flex items-center justify-center">
|
| 535 |
+
<div class="text-center fade-in">
|
| 536 |
+
<i class="fas fa-check-circle text-green-400 text-4xl mb-3"></i>
|
| 537 |
+
<p>Arquivo processado com sucesso!</p>
|
| 538 |
+
<p class="text-sm mt-2 text-slate-400">19 canais ativos | 1024 Hz | 24 bits</p>
|
| 539 |
+
</div>
|
| 540 |
+
</div>
|
| 541 |
+
`;
|
| 542 |
+
|
| 543 |
+
// Update file info
|
| 544 |
+
document.querySelectorAll('.font-mono').forEach(el => {
|
| 545 |
+
if (el.textContent === '-') {
|
| 546 |
+
el.textContent = '1024 Hz';
|
| 547 |
+
el.nextElementSibling.textContent = '24 bits';
|
| 548 |
+
el.nextElementSibling.nextElementSibling.textContent = '5:32 min';
|
| 549 |
+
}
|
| 550 |
+
});
|
| 551 |
+
}, 2000);
|
| 552 |
+
}
|
| 553 |
+
});
|
| 554 |
+
|
| 555 |
+
// Filter controls
|
| 556 |
+
const lowPassFilter = document.getElementById('lowPassFilter');
|
| 557 |
+
const highPassFilter = document.getElementById('highPassFilter');
|
| 558 |
+
const lowPassValue = document.getElementById('lowPassValue');
|
| 559 |
+
const highPassValue = document.getElementById('highPassValue');
|
| 560 |
+
|
| 561 |
+
lowPassFilter.addEventListener('input', function() {
|
| 562 |
+
lowPassValue.textContent = this.value + ' Hz';
|
| 563 |
+
});
|
| 564 |
+
|
| 565 |
+
highPassFilter.addEventListener('input', function() {
|
| 566 |
+
highPassValue.textContent = this.value + ' Hz';
|
| 567 |
+
});
|
| 568 |
+
|
| 569 |
+
// Process button
|
| 570 |
+
const processBtn = document.getElementById('processBtn');
|
| 571 |
+
const analysisResults = document.getElementById('analysisResults');
|
| 572 |
+
const reportContent = document.getElementById('reportContent');
|
| 573 |
+
|
| 574 |
+
processBtn.addEventListener('click', function() {
|
| 575 |
+
// Show processing state
|
| 576 |
+
processBtn.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Processando...';
|
| 577 |
+
processBtn.classList.add('opacity-75');
|
| 578 |
+
processBtn.disabled = true;
|
| 579 |
+
|
| 580 |
+
// Simulate processing with AI
|
| 581 |
+
setTimeout(function() {
|
| 582 |
+
// Update analysis cards
|
| 583 |
+
analysisResults.innerHTML = `
|
| 584 |
+
<div class="analysis-card bg-slate-700 rounded-lg p-5 border-l-blue-500 fade-in">
|
| 585 |
+
<div class="flex justify-between items-start mb-3">
|
| 586 |
+
<h4 class="font-bold text-sm">Atividade Epileptiforme</h4>
|
| 587 |
+
<span class="text-xs bg-red-800 text-red-300 px-3 py-1 rounded-full">Alerta</span>
|
| 588 |
+
</div>
|
| 589 |
+
<p class="text-xs text-slate-400 mb-4">Detectados complexos de onda aguda em regiões temporais esquerdas</p>
|
| 590 |
+
<div class="w-full bg-slate-800 rounded-full h-2 mb-2">
|
| 591 |
+
<div class="bg-red-500 h-2 rounded-full" style="width: 82%"></div>
|
| 592 |
+
</div>
|
| 593 |
+
<div class="flex justify-between text-xs">
|
| 594 |
+
<span>Probabilidade: 82%</span>
|
| 595 |
+
<span>Confiança: 94%</span>
|
| 596 |
+
</div>
|
| 597 |
+
</div>
|
| 598 |
+
|
| 599 |
+
<div class="analysis-card bg-slate-700 rounded-lg p-5 border-l-yellow-500 fade-in">
|
| 600 |
+
<div class="flex justify-between items-start mb-3">
|
| 601 |
+
<h4 class="font-bold text-sm">Atividade Focal</h4>
|
| 602 |
+
<span class="text-xs bg-yellow-800 text-yellow-300 px-3 py-1 rounded-full">Moderado</span>
|
| 603 |
+
</div>
|
| 604 |
+
<p class="text-xs text-slate-400 mb-4">Desorganização focal no lobo temporal esquerdo (T7, T5)</p>
|
| 605 |
+
<div class="w-full bg-slate-800 rounded-full h-2 mb-2">
|
| 606 |
+
<div class="bg-yellow-500 h-2 rounded-full" style="width: 68%"></div>
|
| 607 |
+
</div>
|
| 608 |
+
<div class="flex justify-between text-xs">
|
| 609 |
+
<span>Probabilidade: 68%</span>
|
| 610 |
+
<span>Confiança: 89%</span>
|
| 611 |
+
</div>
|
| 612 |
+
</div>
|
| 613 |
+
|
| 614 |
+
<div class="analysis-card bg-slate-700 rounded-lg p-5 border-l-green-500 fade-in">
|
| 615 |
+
<div class="flex justify-between items-start mb-3">
|
| 616 |
+
<h4 class="font-bold text-sm">Ritmo de Base</h4>
|
| 617 |
+
<span class="text-xs bg-green-800 text-green-300 px-3 py-1 rounded-full">Normal</span>
|
| 618 |
+
</div>
|
| 619 |
+
<p class="text-xs text-slate-400 mb-4">Ritmo alfa posterior preservado (9.2Hz) com boa reatividade</p>
|
| 620 |
+
<div class="w-full bg-slate-800 rounded-full h-2 mb-2">
|
| 621 |
+
<div class="bg-green-500 h-2 rounded-full" style="width: 91%"></div>
|
| 622 |
+
</div>
|
| 623 |
+
<div class="flex justify-between text-xs">
|
| 624 |
+
<span>Probabilidade: 91%</span>
|
| 625 |
+
<span>Confiança: 97%</span>
|
| 626 |
+
</div>
|
| 627 |
+
</div>
|
| 628 |
+
`;
|
| 629 |
+
|
| 630 |
+
// Update frequency analysis
|
| 631 |
+
document.querySelector('.text-yellow-400.text-xl').textContent = '9.2 Hz';
|
| 632 |
+
document.querySelector('.text-purple-400.text-xl').textContent = '2.3';
|
| 633 |
+
|
| 634 |
+
// Generate medical report
|
| 635 |
+
reportContent.innerHTML = `
|
| 636 |
+
<h4 class="text-blue-400">RESUMO DA ANÁLISE</h4>
|
| 637 |
+
<p>O exame EEG mostra atividade de base organizada com ritmo alfa posterior a 9.2 Hz, reativo à abertura ocular. Identificam-se descargas epileptiformes intermitentes na região temporal anterior esquerda (T7, T5), com morfologia de complexos de onda aguda e duração de 1.5-2 segundos, ocorrendo aproximadamente a cada 2 minutos.</p>
|
| 638 |
+
|
| 639 |
+
<h4 class="text-blue-400 mt-6">ACHADOS PRINCIPAIS</h4>
|
| 640 |
+
<ul class="list-disc pl-5 space-y-2">
|
| 641 |
+
<li><strong>Atividade epileptiforme:</strong> Descargas periódicas laterais temporais esquerdas (PLEDs-like) com probabilidade de 82% (confiança 94%)</li>
|
| 642 |
+
<li><strong>Atividade focal:</strong> Desorganização no lobo temporal esquerdo (68% probabilidade)</li>
|
| 643 |
+
<li><strong>Ritmo de base:</strong> Preservado com boa organização e simetria (91% probabilidade)</li>
|
| 644 |
+
<li><strong>Relação theta/beta:</strong> Elevada (2.3) sugerindo possível estado de baixa excitabilidade cortical</li>
|
| 645 |
+
</ul>
|
| 646 |
+
|
| 647 |
+
<h4 class="text-blue-400 mt-6">IMPRESSÃO DIAGNÓSTICA</h4>
|
| 648 |
+
<p>Padrão EEG sugestivo de epilepsia focal do lobo temporal esquerdo, compatível com esclerose mesial temporal. Recomenda-se correlação com ressonância magnética e avaliação clínica para possível indicação cirúrgica.</p>
|
| 649 |
+
|
| 650 |
+
<h4 class="text-blue-400 mt-6">RECOMENDAÇÕES</h4>
|
| 651 |
+
<ol class="list-decimal pl-5 space-y-2">
|
| 652 |
+
<li>Correlacionar com quadro clínico e história médica do paciente</li>
|
| 653 |
+
<li>Considerar estudo de monitorização prolongada (vídeo-EEG)</li>
|
| 654 |
+
<li>Ressonância magnética de encéfalo com protocolo para epilepsia</li>
|
| 655 |
+
<li>Avaliação por equipe multidisciplinar de epilepsia</li>
|
| 656 |
+
</ol>
|
| 657 |
+
|
| 658 |
+
<div class="mt-6 pt-4 border-t border-slate-700">
|
| 659 |
+
<p class="text-xs text-slate-400">Relatório gerado automaticamente pelo sistema NeuroInsight EEG. Este laudo não substitui a avaliação médica especializada. Última atualização do modelo: 15/09/2023.</p>
|
| 660 |
+
</div>
|
| 661 |
+
`;
|
| 662 |
+
|
| 663 |
+
// Reset process button
|
| 664 |
+
processBtn.innerHTML = '<i class="fas fa-bolt mr-2"></i> Processar com IA';
|
| 665 |
+
processBtn.classList.remove('opacity-75');
|
| 666 |
+
processBtn.disabled = false;
|
| 667 |
+
}, 3000);
|
| 668 |
+
});
|
| 669 |
+
|
| 670 |
+
// Electrode interaction
|
| 671 |
+
document.querySelectorAll('.electrode').forEach(elec => {
|
| 672 |
+
elec.addEventListener('click', function() {
|
| 673 |
+
const channel = this.textContent;
|
| 674 |
+
alert(`Canal EEG: ${channel}\n\nAmplitude média: 42.7µV\nImpedância: 5.2kΩ\nFrequência dominante: 8.7Hz\nPotencial: ${Math.random() > 0.5 ? 'Negativo' : 'Positivo'}`);
|
| 675 |
+
});
|
| 676 |
+
});
|
| 677 |
+
});
|
| 678 |
+
</script>
|
| 679 |
+
<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=DHEIVER/neuroinsight" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 680 |
+
</html>
|
prompts.txt
ADDED
|
File without changes
|