undefined - Initial Deployment
Browse files- README.md +6 -4
- index.html +263 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: blue
|
| 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: roe
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: pink
|
| 5 |
colorTo: blue
|
| 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,263 @@
|
|
| 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="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Emotion Insight Engine</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 |
+
.gradient-bg {
|
| 11 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 12 |
+
}
|
| 13 |
+
.pulse-animation {
|
| 14 |
+
animation: pulse 2s infinite;
|
| 15 |
+
}
|
| 16 |
+
@keyframes pulse {
|
| 17 |
+
0% { transform: scale(1); }
|
| 18 |
+
50% { transform: scale(1.05); }
|
| 19 |
+
100% { transform: scale(1); }
|
| 20 |
+
}
|
| 21 |
+
.fade-in {
|
| 22 |
+
animation: fadeIn 0.5s ease-in;
|
| 23 |
+
}
|
| 24 |
+
@keyframes fadeIn {
|
| 25 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 26 |
+
to { opacity: 1; transform: translateY(0); }
|
| 27 |
+
}
|
| 28 |
+
.sentiment-bar {
|
| 29 |
+
transition: width 0.5s ease-in-out;
|
| 30 |
+
}
|
| 31 |
+
.waveform {
|
| 32 |
+
background: repeating-linear-gradient(90deg, #4f46e5, #4f46e5 2px, transparent 2px, transparent 4px);
|
| 33 |
+
animation: wave 1s linear infinite;
|
| 34 |
+
}
|
| 35 |
+
@keyframes wave {
|
| 36 |
+
from { background-position-x: 0; }
|
| 37 |
+
to { background-position-x: 4px; }
|
| 38 |
+
}
|
| 39 |
+
</style>
|
| 40 |
+
</head>
|
| 41 |
+
<body class="min-h-screen bg-gray-100">
|
| 42 |
+
<div class="container mx-auto px-4 py-8">
|
| 43 |
+
<!-- Header -->
|
| 44 |
+
<header class="gradient-bg text-white rounded-xl shadow-lg mb-8 p-6">
|
| 45 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
| 46 |
+
<div class="flex items-center mb-4 md:mb-0">
|
| 47 |
+
<i class="fas fa-brain text-3xl mr-3"></i>
|
| 48 |
+
<h1 class="text-2xl md:text-3xl font-bold">Emotion Insight Engine</h1>
|
| 49 |
+
</div>
|
| 50 |
+
<div class="flex space-x-2">
|
| 51 |
+
<button id="historyBtn" class="bg-white bg-opacity-20 hover:bg-opacity-30 px-4 py-2 rounded-lg flex items-center">
|
| 52 |
+
<i class="fas fa-history mr-2"></i> Session History
|
| 53 |
+
</button>
|
| 54 |
+
<button id="settingsBtn" class="bg-white bg-opacity-20 hover:bg-opacity-30 px-4 py-2 rounded-lg">
|
| 55 |
+
<i class="fas fa-cog"></i>
|
| 56 |
+
</button>
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
<p class="mt-4 opacity-90">Analyze text or voice input through multiple cognitive layers to gain emotional insights</p>
|
| 60 |
+
</header>
|
| 61 |
+
|
| 62 |
+
<!-- Main Content -->
|
| 63 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 64 |
+
<!-- Input Section -->
|
| 65 |
+
<div class="lg:col-span-2 bg-white rounded-xl shadow-lg p-6">
|
| 66 |
+
<div class="flex justify-between items-center mb-4">
|
| 67 |
+
<h2 class="text-xl font-semibold">Input Analysis</h2>
|
| 68 |
+
<div class="flex space-x-2">
|
| 69 |
+
<button id="textTab" class="px-4 py-2 bg-indigo-600 text-white rounded-lg">Text</button>
|
| 70 |
+
<button id="audioTab" class="px-4 py-2 bg-gray-200 hover:bg-gray-300 rounded-lg">Audio</button>
|
| 71 |
+
</div>
|
| 72 |
+
</div>
|
| 73 |
+
|
| 74 |
+
<!-- Text Input -->
|
| 75 |
+
<div id="textInputSection" class="mb-6">
|
| 76 |
+
<textarea id="inputText" class="w-full h-40 p-4 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Type or paste your text here..."></textarea>
|
| 77 |
+
<div class="flex justify-end mt-2">
|
| 78 |
+
<button id="analyzeTextBtn" class="gradient-bg text-white px-6 py-2 rounded-lg hover:opacity-90 flex items-center pulse-animation">
|
| 79 |
+
<i class="fas fa-brain mr-2"></i> Analyze Text
|
| 80 |
+
</button>
|
| 81 |
+
</div>
|
| 82 |
+
</div>
|
| 83 |
+
|
| 84 |
+
<!-- Audio Input -->
|
| 85 |
+
<div id="audioInputSection" class="hidden">
|
| 86 |
+
<div class="bg-gray-100 p-4 rounded-lg mb-4">
|
| 87 |
+
<div class="flex justify-between items-center mb-2">
|
| 88 |
+
<span class="font-medium">Voice Recording</span>
|
| 89 |
+
<div class="flex space-x-2">
|
| 90 |
+
<button id="recordBtn" class="bg-red-500 text-white px-4 py-1 rounded-full flex items-center">
|
| 91 |
+
<i class="fas fa-microphone mr-1"></i> Record
|
| 92 |
+
</button>
|
| 93 |
+
<button id="uploadBtn" class="bg-gray-500 text-white px-4 py-1 rounded-full">
|
| 94 |
+
<i class="fas fa-upload mr-1"></i> Upload
|
| 95 |
+
</button>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
<div id="waveform" class="h-12 waveform rounded mb-2"></div>
|
| 99 |
+
<div class="text-sm text-gray-600">Click record to start capturing audio</div>
|
| 100 |
+
</div>
|
| 101 |
+
<div class="flex justify-end">
|
| 102 |
+
<button id="analyzeAudioBtn" class="gradient-bg text-white px-6 py-2 rounded-lg hover:opacity-90 flex items-center">
|
| 103 |
+
<i class="fas fa-brain mr-2"></i> Analyze Audio
|
| 104 |
+
</button>
|
| 105 |
+
</div>
|
| 106 |
+
</div>
|
| 107 |
+
|
| 108 |
+
<!-- Processing Animation -->
|
| 109 |
+
<div id="processingSection" class="hidden text-center py-8">
|
| 110 |
+
<div class="inline-block animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-indigo-600 mb-4"></div>
|
| 111 |
+
<p class="text-gray-600">Processing through cognitive layers...</p>
|
| 112 |
+
</div>
|
| 113 |
+
|
| 114 |
+
<!-- Results -->
|
| 115 |
+
<div id="resultsSection" class="hidden">
|
| 116 |
+
<div class="bg-gray-50 p-4 rounded-lg mb-4">
|
| 117 |
+
<h3 class="font-semibold mb-2">Emotion Breakdown</h3>
|
| 118 |
+
<div id="emotionBars" class="space-y-3">
|
| 119 |
+
<!-- Dynamically generated emotion bars -->
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
|
| 123 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
| 124 |
+
<div class="bg-gray-50 p-4 rounded-lg">
|
| 125 |
+
<h3 class="font-semibold mb-2">Key Sentiments</h3>
|
| 126 |
+
<div id="sentimentTags" class="flex flex-wrap gap-2">
|
| 127 |
+
<!-- Dynamically generated sentiment tags -->
|
| 128 |
+
</div>
|
| 129 |
+
</div>
|
| 130 |
+
<div class="bg-gray-50 p-4 rounded-lg">
|
| 131 |
+
<h3 class="font-semibold mb-2">Contextual Analysis</h3>
|
| 132 |
+
<div id="contextualAnalysis" class="text-sm">
|
| 133 |
+
<!-- Dynamically generated contextual analysis -->
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
</div>
|
| 137 |
+
</div>
|
| 138 |
+
</div>
|
| 139 |
+
|
| 140 |
+
<!-- Analysis Layers -->
|
| 141 |
+
<div class="bg-white rounded-xl shadow-lg p-6">
|
| 142 |
+
<h2 class="text-xl font-semibold mb-4">Cognitive Layers</h2>
|
| 143 |
+
<div class="space-y-4">
|
| 144 |
+
<div class="layer-card bg-indigo-50 border-l-4 border-indigo-500 p-4 rounded-r-lg">
|
| 145 |
+
<div class="flex justify-between items-start">
|
| 146 |
+
<div>
|
| 147 |
+
<h3 class="font-medium text-indigo-800">Emotion Layer</h3>
|
| 148 |
+
<p class="text-sm text-gray-600 mt-1">HuggingFace/Empath sentiment parsing</p>
|
| 149 |
+
</div>
|
| 150 |
+
<i class="fas fa-heart text-indigo-500 mt-1"></i>
|
| 151 |
+
</div>
|
| 152 |
+
<div id="emotionLayerStatus" class="text-xs text-gray-500 mt-2">Waiting for input...</div>
|
| 153 |
+
</div>
|
| 154 |
+
|
| 155 |
+
<div class="layer-card bg-purple-50 border-l-4 border-purple-500 p-4 rounded-r-lg">
|
| 156 |
+
<div class="flex justify-between items-start">
|
| 157 |
+
<div>
|
| 158 |
+
<h3 class="font-medium text-purple-800">Meaning Layer</h3>
|
| 159 |
+
<p class="text-sm text-gray-600 mt-1">LangChain + Vector memory of prior sessions</p>
|
| 160 |
+
</div>
|
| 161 |
+
<i class="fas fa-book text-purple-500 mt-1"></i>
|
| 162 |
+
</div>
|
| 163 |
+
<div id="meaningLayerStatus" class="text-xs text-gray-500 mt-2">Waiting for input...</div>
|
| 164 |
+
</div>
|
| 165 |
+
|
| 166 |
+
<div class="layer-card bg-blue-50 border-l-4 border-blue-500 p-4 rounded-r-lg">
|
| 167 |
+
<div class="flex justify-between items-start">
|
| 168 |
+
<div>
|
| 169 |
+
<h3 class="font-medium text-blue-800">Logic Layer</h3>
|
| 170 |
+
<p class="text-sm text-gray-600 mt-1">Symbolic reasoner / Python rule engine</p>
|
| 171 |
+
</div>
|
| 172 |
+
<i class="fas fa-cogs text-blue-500 mt-1"></i>
|
| 173 |
+
</div>
|
| 174 |
+
<div id="logicLayerStatus" class="text-xs text-gray-500 mt-2">Waiting for input...</div>
|
| 175 |
+
</div>
|
| 176 |
+
|
| 177 |
+
<div class="layer-card bg-green-50 border-l-4 border-green-500 p-4 rounded-r-lg">
|
| 178 |
+
<div class="flex justify-between items-start">
|
| 179 |
+
<div>
|
| 180 |
+
<h3 class="font-medium text-green-800">Feedback Layer</h3>
|
| 181 |
+
<p class="text-sm text-gray-600 mt-1">Human rating + reinforcement learning</p>
|
| 182 |
+
</div>
|
| 183 |
+
<i class="fas fa-chart-line text-green-500 mt-1"></i>
|
| 184 |
+
</div>
|
| 185 |
+
<div id="feedbackLayerStatus" class="text-xs text-gray-500 mt-2">Waiting for input...</div>
|
| 186 |
+
</div>
|
| 187 |
+
|
| 188 |
+
<div class="layer-card bg-yellow-50 border-l-4 border-yellow-500 p-4 rounded-r-lg">
|
| 189 |
+
<div class="flex justify-between items-start">
|
| 190 |
+
<div>
|
| 191 |
+
<h3 class="font-medium text-yellow-800">Reflection</h3>
|
| 192 |
+
<p class="text-sm text-gray-600 mt-1">Auto-rewriting of internal belief tree</p>
|
| 193 |
+
</div>
|
| 194 |
+
<i class="fas fa-lightbulb text-yellow-500 mt-1"></i>
|
| 195 |
+
</div>
|
| 196 |
+
<div id="reflectionLayerStatus" class="text-xs text-gray-500 mt-2">Waiting for input...</div>
|
| 197 |
+
</div>
|
| 198 |
+
</div>
|
| 199 |
+
|
| 200 |
+
<div class="mt-6 bg-gray-50 p-4 rounded-lg">
|
| 201 |
+
<h3 class="font-semibold mb-2">Memory Context</h3>
|
| 202 |
+
<div id="memoryContext" class="text-sm text-gray-600">
|
| 203 |
+
No prior session data available
|
| 204 |
+
</div>
|
| 205 |
+
</div>
|
| 206 |
+
</div>
|
| 207 |
+
</div>
|
| 208 |
+
|
| 209 |
+
<!-- Insight Output -->
|
| 210 |
+
<div id="insightOutput" class="mt-6 hidden">
|
| 211 |
+
<div class="bg-white rounded-xl shadow-lg p-6">
|
| 212 |
+
<div class="flex justify-between items-center mb-4">
|
| 213 |
+
<h2 class="text-xl font-semibold">Cognitive Insight</h2>
|
| 214 |
+
<div class="flex space-x-2">
|
| 215 |
+
<button id="rateInsightBtn" class="bg-gray-200 hover:bg-gray-300 px-4 py-2 rounded-lg">
|
| 216 |
+
<i class="fas fa-star mr-1"></i> Rate Insight
|
| 217 |
+
</button>
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
<div id="insightContent" class="bg-indigo-50 border border-indigo-100 rounded-lg p-4">
|
| 221 |
+
<!-- Dynamically generated insight content -->
|
| 222 |
+
</div>
|
| 223 |
+
</div>
|
| 224 |
+
</div>
|
| 225 |
+
</div>
|
| 226 |
+
|
| 227 |
+
<!-- Modals -->
|
| 228 |
+
<!-- History Modal -->
|
| 229 |
+
<div id="historyModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
|
| 230 |
+
<div class="bg-white rounded-xl shadow-xl w-full max-w-2xl max-h-[80vh] overflow-hidden">
|
| 231 |
+
<div class="flex justify-between items-center border-b p-4">
|
| 232 |
+
<h3 class="text-lg font-semibold">Session History</h3>
|
| 233 |
+
<button id="closeHistoryModal" class="text-gray-500 hover:text-gray-700">
|
| 234 |
+
<i class="fas fa-times"></i>
|
| 235 |
+
</button>
|
| 236 |
+
</div>
|
| 237 |
+
<div class="p-4 overflow-y-auto">
|
| 238 |
+
<div id="historyList" class="space-y-3">
|
| 239 |
+
<!-- Dynamically generated history items -->
|
| 240 |
+
<div class="text-center py-8 text-gray-500">
|
| 241 |
+
No history available yet
|
| 242 |
+
</div>
|
| 243 |
+
</div>
|
| 244 |
+
</div>
|
| 245 |
+
</div>
|
| 246 |
+
</div>
|
| 247 |
+
|
| 248 |
+
<!-- Settings Modal -->
|
| 249 |
+
<div id="settingsModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
|
| 250 |
+
<div class="bg-white rounded-xl shadow-xl w-full max-w-md max-h-[80vh] overflow-hidden">
|
| 251 |
+
<div class="flex justify-between items-center border-b p-4">
|
| 252 |
+
<h3 class="text-lg font-semibold">Settings</h3>
|
| 253 |
+
<button id="closeSettingsModal" class="text-gray-500 hover:text-gray-700">
|
| 254 |
+
<i class="fas fa-times"></i>
|
| 255 |
+
</button>
|
| 256 |
+
</div>
|
| 257 |
+
<div class="p-4 overflow-y-auto">
|
| 258 |
+
<div class="space-y-4">
|
| 259 |
+
<div>
|
| 260 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Analysis Depth</label>
|
| 261 |
+
<select class="w-full p-
|
| 262 |
+
<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=MHE-LLC/roe" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 263 |
+
</html>
|