Add 2 files
Browse files- README.md +7 -5
- index.html +525 -19
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: w9s3r
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: blue
|
| 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,525 @@
|
|
| 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>Enhanced Super Agent UI</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, #6e8efb, #a777e3);
|
| 12 |
+
}
|
| 13 |
+
.agent-card:hover {
|
| 14 |
+
transform: translateY(-5px);
|
| 15 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 16 |
+
}
|
| 17 |
+
.fade-in {
|
| 18 |
+
animation: fadeIn 0.5s ease-in-out;
|
| 19 |
+
}
|
| 20 |
+
@keyframes fadeIn {
|
| 21 |
+
from { opacity: 0; }
|
| 22 |
+
to { opacity: 1; }
|
| 23 |
+
}
|
| 24 |
+
.typing {
|
| 25 |
+
border-right: 2px solid;
|
| 26 |
+
animation: typing 1s steps(40, end), blink-caret .75s step-end infinite;
|
| 27 |
+
}
|
| 28 |
+
@keyframes typing {
|
| 29 |
+
from { width: 0 }
|
| 30 |
+
to { width: 100% }
|
| 31 |
+
}
|
| 32 |
+
@keyframes blink-caret {
|
| 33 |
+
from, to { border-color: transparent }
|
| 34 |
+
50% { border-color: #4f46e5; }
|
| 35 |
+
}
|
| 36 |
+
</style>
|
| 37 |
+
</head>
|
| 38 |
+
<body class="bg-gray-50 min-h-screen">
|
| 39 |
+
<!-- Header -->
|
| 40 |
+
<header class="gradient-bg text-white shadow-lg">
|
| 41 |
+
<div class="container mx-auto px-4 py-6">
|
| 42 |
+
<div class="flex justify-between items-center">
|
| 43 |
+
<div class="flex items-center space-x-3">
|
| 44 |
+
<i class="fas fa-robot text-3xl"></i>
|
| 45 |
+
<h1 class="text-2xl font-bold">Enhanced Super Agent</h1>
|
| 46 |
+
<span class="bg-indigo-100 text-indigo-800 text-xs font-medium px-2.5 py-0.5 rounded-full">v0.2-dev</span>
|
| 47 |
+
</div>
|
| 48 |
+
<div class="flex space-x-4">
|
| 49 |
+
<button class="bg-white/20 hover:bg-white/30 px-4 py-2 rounded-lg flex items-center space-x-2 transition">
|
| 50 |
+
<i class="fas fa-cog"></i>
|
| 51 |
+
<span>Settings</span>
|
| 52 |
+
</button>
|
| 53 |
+
<button class="bg-white/20 hover:bg-white/30 px-4 py-2 rounded-lg flex items-center space-x-2 transition">
|
| 54 |
+
<i class="fas fa-question-circle"></i>
|
| 55 |
+
<span>Help</span>
|
| 56 |
+
</button>
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
</div>
|
| 60 |
+
</header>
|
| 61 |
+
|
| 62 |
+
<!-- Main Content -->
|
| 63 |
+
<main class="container mx-auto px-4 py-8">
|
| 64 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
|
| 65 |
+
<!-- Left Sidebar - Agent Selection -->
|
| 66 |
+
<div class="lg:col-span-1 space-y-6">
|
| 67 |
+
<div class="bg-white rounded-xl shadow-md p-6">
|
| 68 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800">Available Agents</h2>
|
| 69 |
+
<div class="space-y-4">
|
| 70 |
+
<!-- Planner Agent -->
|
| 71 |
+
<div class="agent-card bg-white border border-gray-200 rounded-lg p-4 transition cursor-pointer hover:border-indigo-300">
|
| 72 |
+
<div class="flex items-center space-x-3">
|
| 73 |
+
<div class="bg-indigo-100 p-2 rounded-full">
|
| 74 |
+
<i class="fas fa-tasks text-indigo-600"></i>
|
| 75 |
+
</div>
|
| 76 |
+
<div>
|
| 77 |
+
<h3 class="font-medium">Planner Agent</h3>
|
| 78 |
+
<p class="text-sm text-gray-500">Creates detailed plans and itineraries</p>
|
| 79 |
+
</div>
|
| 80 |
+
</div>
|
| 81 |
+
</div>
|
| 82 |
+
|
| 83 |
+
<!-- Phone Agent -->
|
| 84 |
+
<div class="agent-card bg-white border border-gray-200 rounded-lg p-4 transition cursor-pointer hover:border-indigo-300">
|
| 85 |
+
<div class="flex items-center space-x-3">
|
| 86 |
+
<div class="bg-blue-100 p-2 rounded-full">
|
| 87 |
+
<i class="fas fa-phone-alt text-blue-600"></i>
|
| 88 |
+
</div>
|
| 89 |
+
<div>
|
| 90 |
+
<h3 class="font-medium">Phone Agent</h3>
|
| 91 |
+
<p class="text-sm text-gray-500">Makes calls and handles reservations</p>
|
| 92 |
+
</div>
|
| 93 |
+
</div>
|
| 94 |
+
</div>
|
| 95 |
+
|
| 96 |
+
<!-- Video Agent -->
|
| 97 |
+
<div class="agent-card bg-white border border-gray-200 rounded-lg p-4 transition cursor-pointer hover:border-indigo-300">
|
| 98 |
+
<div class="flex items-center space-x-3">
|
| 99 |
+
<div class="bg-purple-100 p-2 rounded-full">
|
| 100 |
+
<i class="fas fa-video text-purple-600"></i>
|
| 101 |
+
</div>
|
| 102 |
+
<div>
|
| 103 |
+
<h3 class="font-medium">Video Agent</h3>
|
| 104 |
+
<p class="text-sm text-gray-500">Generates video content</p>
|
| 105 |
+
</div>
|
| 106 |
+
</div>
|
| 107 |
+
</div>
|
| 108 |
+
|
| 109 |
+
<!-- Research Agent -->
|
| 110 |
+
<div class="agent-card bg-white border border-gray-200 rounded-lg p-4 transition cursor-pointer hover:border-indigo-300">
|
| 111 |
+
<div class="flex items-center space-x-3">
|
| 112 |
+
<div class="bg-green-100 p-2 rounded-full">
|
| 113 |
+
<i class="fas fa-search text-green-600"></i>
|
| 114 |
+
</div>
|
| 115 |
+
<div>
|
| 116 |
+
<h3 class="font-medium">Research Agent</h3>
|
| 117 |
+
<p class="text-sm text-gray-500">Performs deep research on topics</p>
|
| 118 |
+
</div>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
|
| 122 |
+
<!-- Data Analysis Agent -->
|
| 123 |
+
<div class="agent-card bg-white border border-gray-200 rounded-lg p-4 transition cursor-pointer hover:border-indigo-300">
|
| 124 |
+
<div class="flex items-center space-x-3">
|
| 125 |
+
<div class="bg-yellow-100 p-2 rounded-full">
|
| 126 |
+
<i class="fas fa-chart-bar text-yellow-600"></i>
|
| 127 |
+
</div>
|
| 128 |
+
<div>
|
| 129 |
+
<h3 class="font-medium">Data Analysis</h3>
|
| 130 |
+
<p class="text-sm text-gray-500">Analyzes datasets and statistics</p>
|
| 131 |
+
</div>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
|
| 135 |
+
<!-- Web Agent -->
|
| 136 |
+
<div class="agent-card bg-white border border-gray-200 rounded-lg p-4 transition cursor-pointer hover:border-indigo-300">
|
| 137 |
+
<div class="flex items-center space-x-3">
|
| 138 |
+
<div class="bg-red-100 p-2 rounded-full">
|
| 139 |
+
<i class="fas fa-globe text-red-600"></i>
|
| 140 |
+
</div>
|
| 141 |
+
<div>
|
| 142 |
+
<h3 class="font-medium">Web Agent</h3>
|
| 143 |
+
<p class="text-sm text-gray-500">Creates web content</p>
|
| 144 |
+
</div>
|
| 145 |
+
</div>
|
| 146 |
+
</div>
|
| 147 |
+
|
| 148 |
+
<!-- Content Synthesis Agent -->
|
| 149 |
+
<div class="agent-card bg-white border border-gray-200 rounded-lg p-4 transition cursor-pointer hover:border-indigo-300">
|
| 150 |
+
<div class="flex items-center space-x-3">
|
| 151 |
+
<div class="bg-pink-100 p-2 rounded-full">
|
| 152 |
+
<i class="fas fa-file-alt text-pink-600"></i>
|
| 153 |
+
</div>
|
| 154 |
+
<div>
|
| 155 |
+
<h3 class="font-medium">Content Synthesis</h3>
|
| 156 |
+
<p class="text-sm text-gray-500">Creates summaries and reports</p>
|
| 157 |
+
</div>
|
| 158 |
+
</div>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
</div>
|
| 162 |
+
|
| 163 |
+
<div class="bg-white rounded-xl shadow-md p-6">
|
| 164 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800">Quick Actions</h2>
|
| 165 |
+
<div class="grid grid-cols-2 gap-3">
|
| 166 |
+
<button class="bg-indigo-50 hover:bg-indigo-100 text-indigo-700 py-2 px-3 rounded-lg text-sm font-medium transition flex items-center space-x-2">
|
| 167 |
+
<i class="fas fa-plane"></i>
|
| 168 |
+
<span>Plan Trip</span>
|
| 169 |
+
</button>
|
| 170 |
+
<button class="bg-blue-50 hover:bg-blue-100 text-blue-700 py-2 px-3 rounded-lg text-sm font-medium transition flex items-center space-x-2">
|
| 171 |
+
<i class="fas fa-book"></i>
|
| 172 |
+
<span>Research</span>
|
| 173 |
+
</button>
|
| 174 |
+
<button class="bg-purple-50 hover:bg-purple-100 text-purple-700 py-2 px-3 rounded-lg text-sm font-medium transition flex items-center space-x-2">
|
| 175 |
+
<i class="fas fa-video"></i>
|
| 176 |
+
<span>Create Video</span>
|
| 177 |
+
</button>
|
| 178 |
+
<button class="bg-green-50 hover:bg-green-100 text-green-700 py-2 px-3 rounded-lg text-sm font-medium transition flex items-center space-x-2">
|
| 179 |
+
<i class="fas fa-file-csv"></i>
|
| 180 |
+
<span>Analyze Data</span>
|
| 181 |
+
</button>
|
| 182 |
+
</div>
|
| 183 |
+
</div>
|
| 184 |
+
</div>
|
| 185 |
+
|
| 186 |
+
<!-- Main Chat Area -->
|
| 187 |
+
<div class="lg:col-span-2 space-y-6">
|
| 188 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
| 189 |
+
<div class="border-b border-gray-200 px-6 py-4">
|
| 190 |
+
<h2 class="text-xl font-semibold text-gray-800">Agent Console</h2>
|
| 191 |
+
</div>
|
| 192 |
+
|
| 193 |
+
<!-- Chat Messages -->
|
| 194 |
+
<div class="h-96 overflow-y-auto p-6 space-y-4" id="chat-messages">
|
| 195 |
+
<div class="flex items-start space-x-3">
|
| 196 |
+
<div class="bg-indigo-100 p-2 rounded-full">
|
| 197 |
+
<i class="fas fa-robot text-indigo-600"></i>
|
| 198 |
+
</div>
|
| 199 |
+
<div class="bg-gray-50 rounded-lg p-3 max-w-3xl">
|
| 200 |
+
<p class="text-gray-800">Hello! I'm your Enhanced Super Agent. How can I assist you today?</p>
|
| 201 |
+
<p class="text-xs text-gray-500 mt-1">System initialized with safety protocols active</p>
|
| 202 |
+
</div>
|
| 203 |
+
</div>
|
| 204 |
+
|
| 205 |
+
<div class="flex items-start space-x-3">
|
| 206 |
+
<div class="bg-gray-100 p-2 rounded-full">
|
| 207 |
+
<i class="fas fa-user text-gray-600"></i>
|
| 208 |
+
</div>
|
| 209 |
+
<div class="bg-blue-50 rounded-lg p-3 max-w-3xl">
|
| 210 |
+
<p class="text-gray-800">Plan a trip to San Diego for April 24-29, focusing on seafood and cultural sites. Then book Peohe's for dinner on the 26th for 4 people (one shellfish allergy, one vegetarian), window table preferred.</p>
|
| 211 |
+
</div>
|
| 212 |
+
</div>
|
| 213 |
+
|
| 214 |
+
<div class="flex items-start space-x-3">
|
| 215 |
+
<div class="bg-indigo-100 p-2 rounded-full">
|
| 216 |
+
<i class="fas fa-robot text-indigo-600"></i>
|
| 217 |
+
</div>
|
| 218 |
+
<div class="bg-gray-50 rounded-lg p-3 max-w-3xl">
|
| 219 |
+
<p class="text-gray-800">[PlannerAgent] Creating itinerary for 5-day trip to San Diego...</p>
|
| 220 |
+
<p class="text-gray-800 mt-2">[PhoneAgent] Calling Peohe's restaurant for reservation...</p>
|
| 221 |
+
<div class="mt-3 bg-green-50 border border-green-100 rounded-lg p-3">
|
| 222 |
+
<p class="text-green-800 font-medium">Success! Your trip is planned and reservation is confirmed.</p>
|
| 223 |
+
<div class="mt-2 text-sm text-gray-700">
|
| 224 |
+
<p>• 5-day itinerary created with seafood and cultural focus</p>
|
| 225 |
+
<p>• Dinner reservation at Peohe's on April 26th for 4 people</p>
|
| 226 |
+
<p>• Special requests noted: shellfish allergy & vegetarian</p>
|
| 227 |
+
</div>
|
| 228 |
+
</div>
|
| 229 |
+
</div>
|
| 230 |
+
</div>
|
| 231 |
+
</div>
|
| 232 |
+
|
| 233 |
+
<!-- Input Area -->
|
| 234 |
+
<div class="border-t border-gray-200 p-4 bg-gray-50">
|
| 235 |
+
<div class="flex space-x-3">
|
| 236 |
+
<div class="flex-grow relative">
|
| 237 |
+
<textarea id="user-input" class="w-full border border-gray-300 rounded-lg pl-4 pr-12 py-3 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" rows="2" placeholder="Type your request here..."></textarea>
|
| 238 |
+
<div class="absolute right-3 bottom-3 flex space-x-2">
|
| 239 |
+
<button class="text-gray-400 hover:text-gray-600">
|
| 240 |
+
<i class="fas fa-paperclip"></i>
|
| 241 |
+
</button>
|
| 242 |
+
<button class="text-gray-400 hover:text-gray-600">
|
| 243 |
+
<i class="fas fa-microphone"></i>
|
| 244 |
+
</button>
|
| 245 |
+
</div>
|
| 246 |
+
</div>
|
| 247 |
+
<button id="send-button" class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-3 rounded-lg transition">
|
| 248 |
+
<i class="fas fa-paper-plane"></i>
|
| 249 |
+
</button>
|
| 250 |
+
</div>
|
| 251 |
+
</div>
|
| 252 |
+
</div>
|
| 253 |
+
|
| 254 |
+
<!-- Agent Status -->
|
| 255 |
+
<div class="bg-white rounded-xl shadow-md p-6">
|
| 256 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800">Agent Status</h2>
|
| 257 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
| 258 |
+
<div class="bg-gray-50 rounded-lg p-4">
|
| 259 |
+
<div class="flex items-center justify-between mb-2">
|
| 260 |
+
<h3 class="font-medium text-gray-700">System Health</h3>
|
| 261 |
+
<span class="bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded-full">Active</span>
|
| 262 |
+
</div>
|
| 263 |
+
<div class="space-y-3">
|
| 264 |
+
<div>
|
| 265 |
+
<div class="flex justify-between text-sm mb-1">
|
| 266 |
+
<span class="text-gray-500">CPU Usage</span>
|
| 267 |
+
<span class="font-medium">24%</span>
|
| 268 |
+
</div>
|
| 269 |
+
<div class="w-full bg-gray-200 rounded-full h-1.5">
|
| 270 |
+
<div class="bg-blue-600 h-1.5 rounded-full" style="width: 24%"></div>
|
| 271 |
+
</div>
|
| 272 |
+
</div>
|
| 273 |
+
<div>
|
| 274 |
+
<div class="flex justify-between text-sm mb-1">
|
| 275 |
+
<span class="text-gray-500">Memory</span>
|
| 276 |
+
<span class="font-medium">1.2GB/4GB</span>
|
| 277 |
+
</div>
|
| 278 |
+
<div class="w-full bg-gray-200 rounded-full h-1.5">
|
| 279 |
+
<div class="bg-purple-600 h-1.5 rounded-full" style="width: 30%"></div>
|
| 280 |
+
</div>
|
| 281 |
+
</div>
|
| 282 |
+
</div>
|
| 283 |
+
</div>
|
| 284 |
+
|
| 285 |
+
<div class="bg-gray-50 rounded-lg p-4">
|
| 286 |
+
<div class="flex items-center justify-between mb-2">
|
| 287 |
+
<h3 class="font-medium text-gray-700">Recent Activity</h3>
|
| 288 |
+
<span class="bg-blue-100 text-blue-800 text-xs font-medium px-2.5 py-0.5 rounded-full">3 tasks</span>
|
| 289 |
+
</div>
|
| 290 |
+
<div class="space-y-3">
|
| 291 |
+
<div class="flex items-center space-x-3">
|
| 292 |
+
<div class="bg-green-100 p-1 rounded-full">
|
| 293 |
+
<i class="fas fa-check-circle text-green-600 text-sm"></i>
|
| 294 |
+
</div>
|
| 295 |
+
<div>
|
| 296 |
+
<p class="text-sm font-medium">Trip planning completed</p>
|
| 297 |
+
<p class="text-xs text-gray-500">2 minutes ago</p>
|
| 298 |
+
</div>
|
| 299 |
+
</div>
|
| 300 |
+
<div class="flex items-center space-x-3">
|
| 301 |
+
<div class="bg-green-100 p-1 rounded-full">
|
| 302 |
+
<i class="fas fa-check-circle text-green-600 text-sm"></i>
|
| 303 |
+
</div>
|
| 304 |
+
<div>
|
| 305 |
+
<p class="text-sm font-medium">Restaurant reservation</p>
|
| 306 |
+
<p class="text-xs text-gray-500">5 minutes ago</p>
|
| 307 |
+
</div>
|
| 308 |
+
</div>
|
| 309 |
+
<div class="flex items-center space-x-3">
|
| 310 |
+
<div class="bg-yellow-100 p-1 rounded-full">
|
| 311 |
+
<i class="fas fa-spinner text-yellow-600 text-sm animate-spin"></i>
|
| 312 |
+
</div>
|
| 313 |
+
<div>
|
| 314 |
+
<p class="text-sm font-medium">Processing request</p>
|
| 315 |
+
<p class="text-xs text-gray-500">Just now</p>
|
| 316 |
+
</div>
|
| 317 |
+
</div>
|
| 318 |
+
</div>
|
| 319 |
+
</div>
|
| 320 |
+
</div>
|
| 321 |
+
</div>
|
| 322 |
+
</div>
|
| 323 |
+
</div>
|
| 324 |
+
</main>
|
| 325 |
+
|
| 326 |
+
<!-- Footer -->
|
| 327 |
+
<footer class="bg-gray-100 border-t border-gray-200 py-6 mt-12">
|
| 328 |
+
<div class="container mx-auto px-4">
|
| 329 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
| 330 |
+
<div class="flex items-center space-x-2 mb-4 md:mb-0">
|
| 331 |
+
<i class="fas fa-robot text-indigo-600"></i>
|
| 332 |
+
<span class="font-medium">Enhanced Super Agent</span>
|
| 333 |
+
</div>
|
| 334 |
+
<div class="flex space-x-6">
|
| 335 |
+
<a href="#" class="text-gray-600 hover:text-indigo-600 transition">Privacy</a>
|
| 336 |
+
<a href="#" class="text-gray-600 hover:text-indigo-600 transition">Terms</a>
|
| 337 |
+
<a href="#" class="text-gray-600 hover:text-indigo-600 transition">Documentation</a>
|
| 338 |
+
<a href="#" class="text-gray-600 hover:text-indigo-600 transition">Contact</a>
|
| 339 |
+
</div>
|
| 340 |
+
</div>
|
| 341 |
+
<div class="mt-4 text-center md:text-left text-sm text-gray-500">
|
| 342 |
+
<p>© 2023 Enhanced Super Agent. All rights reserved. Version 0.2-dev</p>
|
| 343 |
+
</div>
|
| 344 |
+
</div>
|
| 345 |
+
</footer>
|
| 346 |
+
|
| 347 |
+
<script>
|
| 348 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 349 |
+
const sendButton = document.getElementById('send-button');
|
| 350 |
+
const userInput = document.getElementById('user-input');
|
| 351 |
+
const chatMessages = document.getElementById('chat-messages');
|
| 352 |
+
|
| 353 |
+
// Example requests for demo purposes
|
| 354 |
+
const exampleRequests = [
|
| 355 |
+
"Plan a trip to San Diego for April 24-29, focusing on seafood and cultural sites",
|
| 356 |
+
"Create slides about the latest developments in fusion energy",
|
| 357 |
+
"Summarize the key points about the Genspark Super Agent",
|
| 358 |
+
"Analyze the sales data in 'quarterly_report.xlsx' and give me summary statistics"
|
| 359 |
+
];
|
| 360 |
+
|
| 361 |
+
// Add typing indicator
|
| 362 |
+
function showTypingIndicator() {
|
| 363 |
+
const typingDiv = document.createElement('div');
|
| 364 |
+
typingDiv.className = 'flex items-start space-x-3';
|
| 365 |
+
typingDiv.innerHTML = `
|
| 366 |
+
<div class="bg-indigo-100 p-2 rounded-full">
|
| 367 |
+
<i class="fas fa-robot text-indigo-600"></i>
|
| 368 |
+
</div>
|
| 369 |
+
<div class="bg-gray-50 rounded-lg p-3 max-w-3xl">
|
| 370 |
+
<div class="typing w-8 h-4"></div>
|
| 371 |
+
</div>
|
| 372 |
+
`;
|
| 373 |
+
chatMessages.appendChild(typingDiv);
|
| 374 |
+
chatMessages.scrollTop = chatMessages.scrollHeight;
|
| 375 |
+
return typingDiv;
|
| 376 |
+
}
|
| 377 |
+
|
| 378 |
+
// Remove typing indicator
|
| 379 |
+
function removeTypingIndicator(typingDiv) {
|
| 380 |
+
if (typingDiv && typingDiv.parentNode) {
|
| 381 |
+
typingDiv.parentNode.removeChild(typingDiv);
|
| 382 |
+
}
|
| 383 |
+
}
|
| 384 |
+
|
| 385 |
+
// Add user message to chat
|
| 386 |
+
function addUserMessage(message) {
|
| 387 |
+
const messageDiv = document.createElement('div');
|
| 388 |
+
messageDiv.className = 'flex items-start space-x-3 fade-in';
|
| 389 |
+
messageDiv.innerHTML = `
|
| 390 |
+
<div class="bg-gray-100 p-2 rounded-full">
|
| 391 |
+
<i class="fas fa-user text-gray-600"></i>
|
| 392 |
+
</div>
|
| 393 |
+
<div class="bg-blue-50 rounded-lg p-3 max-w-3xl">
|
| 394 |
+
<p class="text-gray-800">${message}</p>
|
| 395 |
+
</div>
|
| 396 |
+
`;
|
| 397 |
+
chatMessages.appendChild(messageDiv);
|
| 398 |
+
chatMessages.scrollTop = chatMessages.scrollHeight;
|
| 399 |
+
}
|
| 400 |
+
|
| 401 |
+
// Add agent response to chat
|
| 402 |
+
function addAgentResponse(response) {
|
| 403 |
+
const responseDiv = document.createElement('div');
|
| 404 |
+
responseDiv.className = 'flex items-start space-x-3 fade-in';
|
| 405 |
+
responseDiv.innerHTML = `
|
| 406 |
+
<div class="bg-indigo-100 p-2 rounded-full">
|
| 407 |
+
<i class="fas fa-robot text-indigo-600"></i>
|
| 408 |
+
</div>
|
| 409 |
+
<div class="bg-gray-50 rounded-lg p-3 max-w-3xl">
|
| 410 |
+
${response}
|
| 411 |
+
</div>
|
| 412 |
+
`;
|
| 413 |
+
chatMessages.appendChild(responseDiv);
|
| 414 |
+
chatMessages.scrollTop = chatMessages.scrollHeight;
|
| 415 |
+
}
|
| 416 |
+
|
| 417 |
+
// Generate a random agent response (for demo)
|
| 418 |
+
function generateAgentResponse(userMessage) {
|
| 419 |
+
// Simple response logic for demo
|
| 420 |
+
if (userMessage.toLowerCase().includes('trip') || userMessage.toLowerCase().includes('san diego')) {
|
| 421 |
+
return `
|
| 422 |
+
<p class="text-gray-800">[PlannerAgent] Creating itinerary for trip to San Diego...</p>
|
| 423 |
+
<p class="text-gray-800 mt-2">[PhoneAgent] Making restaurant reservations...</p>
|
| 424 |
+
<div class="mt-3 bg-green-50 border border-green-100 rounded-lg p-3">
|
| 425 |
+
<p class="text-green-800 font-medium">Success! Your trip is planned and reservations are confirmed.</p>
|
| 426 |
+
<div class="mt-2 text-sm text-gray-700">
|
| 427 |
+
<p>• 5-day itinerary created with seafood and cultural focus</p>
|
| 428 |
+
<p>• Dinner reservations confirmed for your requested dates</p>
|
| 429 |
+
<p>• Special dietary needs noted for all reservations</p>
|
| 430 |
+
</div>
|
| 431 |
+
</div>
|
| 432 |
+
`;
|
| 433 |
+
} else if (userMessage.toLowerCase().includes('slides') || userMessage.toLowerCase().includes('fusion')) {
|
| 434 |
+
return `
|
| 435 |
+
<p class="text-gray-800">[ResearchAgent] Researching latest developments in fusion energy...</p>
|
| 436 |
+
<p class="text-gray-800 mt-2">[ContentSynthesis] Creating slide deck outline...</p>
|
| 437 |
+
<div class="mt-3 bg-green-50 border border-green-100 rounded-lg p-3">
|
| 438 |
+
<p class="text-green-800 font-medium">Research complete! Here's your slide deck outline:</p>
|
| 439 |
+
<div class="mt-2 text-sm text-gray-700">
|
| 440 |
+
<p>1. Title Slide: Fusion Energy Breakthroughs</p>
|
| 441 |
+
<p>2. Recent Developments in Tokamak Designs</p>
|
| 442 |
+
<p>3. Advances in Laser Inertial Confinement</p>
|
| 443 |
+
<p>4. Commercialization Roadmap</p>
|
| 444 |
+
<p>5. Conclusion & Future Outlook</p>
|
| 445 |
+
</div>
|
| 446 |
+
</div>
|
| 447 |
+
`;
|
| 448 |
+
} else if (userMessage.toLowerCase().includes('summarize') || userMessage.toLowerCase().includes('genspark')) {
|
| 449 |
+
return `
|
| 450 |
+
<p class="text-gray-800">[ResearchAgent] Gathering information about Genspark Super Agent...</p>
|
| 451 |
+
<div class="mt-3 bg-green-50 border border-green-100 rounded-lg p-3">
|
| 452 |
+
<p class="text-green-800 font-medium">Summary of Genspark Super Agent:</p>
|
| 453 |
+
<div class="mt-2 text-sm text-gray-700">
|
| 454 |
+
<p>• Advanced AI system with multi-agent architecture</p>
|
| 455 |
+
<p>• Capabilities include planning, research, content creation</p>
|
| 456 |
+
<p>• Version 0.2-dev with enhanced synthesis features</p>
|
| 457 |
+
<p>• Safety protocols and transparency mechanisms built-in</p>
|
| 458 |
+
</div>
|
| 459 |
+
</div>
|
| 460 |
+
`;
|
| 461 |
+
} else if (userMessage.toLowerCase().includes('analyze') || userMessage.toLowerCase().includes('data')) {
|
| 462 |
+
return `
|
| 463 |
+
<p class="text-gray-800">[DataAnalysisAgent] Loading 'quarterly_report.xlsx'...</p>
|
| 464 |
+
<p class="text-gray-800 mt-2">Analyzing sales data patterns...</p>
|
| 465 |
+
<div class="mt-3 bg-green-50 border border-green-100 rounded-lg p-3">
|
| 466 |
+
<p class="text-green-800 font-medium">Analysis Results:</p>
|
| 467 |
+
<div class="mt-2 text-sm text-gray-700">
|
| 468 |
+
<p>• Total Revenue: $1.2M (Q3 2023)</p>
|
| 469 |
+
<p>• Top Performing Product: Model X-200 (32% of revenue)</p>
|
| 470 |
+
<p>• Growth Rate: 12% quarter-over-quarter</p>
|
| 471 |
+
<p>• Customer Retention: 78% (up from 72% last quarter)</p>
|
| 472 |
+
</div>
|
| 473 |
+
</div>
|
| 474 |
+
`;
|
| 475 |
+
} else {
|
| 476 |
+
return `
|
| 477 |
+
<p class="text-gray-800">I've received your request. Let me process that for you...</p>
|
| 478 |
+
<div class="mt-3 bg-blue-50 border border-blue-100 rounded-lg p-3">
|
| 479 |
+
<p class="text-blue-800 font-medium">Request received</p>
|
| 480 |
+
<p class="mt-1 text-sm text-gray-700">The appropriate agents are being activated to handle your request.</p>
|
| 481 |
+
</div>
|
| 482 |
+
`;
|
| 483 |
+
}
|
| 484 |
+
}
|
| 485 |
+
|
| 486 |
+
// Handle send button click
|
| 487 |
+
sendButton.addEventListener('click', function() {
|
| 488 |
+
const message = userInput.value.trim();
|
| 489 |
+
if (message) {
|
| 490 |
+
addUserMessage(message);
|
| 491 |
+
userInput.value = '';
|
| 492 |
+
|
| 493 |
+
// Show typing indicator
|
| 494 |
+
const typingDiv = showTypingIndicator();
|
| 495 |
+
|
| 496 |
+
// Simulate processing delay
|
| 497 |
+
setTimeout(() => {
|
| 498 |
+
removeTypingIndicator(typingDiv);
|
| 499 |
+
const response = generateAgentResponse(message);
|
| 500 |
+
addAgentResponse(response);
|
| 501 |
+
}, 1500 + Math.random() * 2000);
|
| 502 |
+
}
|
| 503 |
+
});
|
| 504 |
+
|
| 505 |
+
// Handle Enter key press
|
| 506 |
+
userInput.addEventListener('keypress', function(e) {
|
| 507 |
+
if (e.key === 'Enter' && !e.shiftKey) {
|
| 508 |
+
e.preventDefault();
|
| 509 |
+
sendButton.click();
|
| 510 |
+
}
|
| 511 |
+
});
|
| 512 |
+
|
| 513 |
+
// Add example requests to input placeholder
|
| 514 |
+
let currentExample = 0;
|
| 515 |
+
function rotateExample() {
|
| 516 |
+
userInput.placeholder = `Try: ${exampleRequests[currentExample]}`;
|
| 517 |
+
currentExample = (currentExample + 1) % exampleRequests.length;
|
| 518 |
+
}
|
| 519 |
+
|
| 520 |
+
rotateExample();
|
| 521 |
+
setInterval(rotateExample, 3000);
|
| 522 |
+
});
|
| 523 |
+
</script>
|
| 524 |
+
<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=3rd3y3/w9s3r" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 525 |
+
</html>
|