jblast94 commited on
Commit
572a28b
·
verified ·
1 Parent(s): 3151ce2

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +480 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Project Orpheus
3
- emoji: 🔥
4
- colorFrom: gray
5
- colorTo: purple
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: project-orpheus
3
+ emoji: 🐳
4
+ colorFrom: purple
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,480 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Project Orpheus | AI Development Assistant</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
+ @keyframes pulse {
11
+ 0%, 100% { opacity: 1; }
12
+ 50% { opacity: 0.5; }
13
+ }
14
+ .animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
15
+ .typing-indicator span {
16
+ display: inline-block;
17
+ width: 8px;
18
+ height: 8px;
19
+ border-radius: 50%;
20
+ background-color: #4f46e5;
21
+ margin: 0 2px;
22
+ }
23
+ .typing-indicator span:nth-child(1) { animation: bounce 1s infinite; }
24
+ .typing-indicator span:nth-child(2) { animation: bounce 1s infinite 0.2s; }
25
+ .typing-indicator span:nth-child(3) { animation: bounce 1s infinite 0.4s; }
26
+ @keyframes bounce {
27
+ 0%, 100% { transform: translateY(0); }
28
+ 50% { transform: translateY(-5px); }
29
+ }
30
+ .markdown-content pre {
31
+ background-color: #1e293b;
32
+ color: #f8fafc;
33
+ padding: 1rem;
34
+ border-radius: 0.5rem;
35
+ overflow-x: auto;
36
+ margin: 1rem 0;
37
+ }
38
+ .markdown-content code {
39
+ background-color: #1e293b;
40
+ color: #f8fafc;
41
+ padding: 0.2rem 0.4rem;
42
+ border-radius: 0.25rem;
43
+ font-family: monospace;
44
+ }
45
+ .markdown-content p {
46
+ margin-bottom: 1rem;
47
+ }
48
+ .waveform {
49
+ display: flex;
50
+ align-items: center;
51
+ height: 40px;
52
+ }
53
+ .waveform-bar {
54
+ width: 3px;
55
+ margin: 0 1px;
56
+ background-color: #4f46e5;
57
+ border-radius: 3px;
58
+ animation: equalize 1.5s infinite ease-in-out;
59
+ }
60
+ @keyframes equalize {
61
+ 0%, 100% { height: 10px; }
62
+ 50% { height: 20px; }
63
+ }
64
+ .waveform-bar:nth-child(1) { animation-delay: -0.9s; }
65
+ .waveform-bar:nth-child(2) { animation-delay: -0.7s; }
66
+ .waveform-bar:nth-child(3) { animation-delay: -0.5s; }
67
+ .waveform-bar:nth-child(4) { animation-delay: -0.3s; }
68
+ .waveform-bar:nth-child(5) { animation-delay: -0.1s; }
69
+ </style>
70
+ </head>
71
+ <body class="bg-gray-900 text-gray-100 font-sans">
72
+ <div class="flex flex-col h-screen">
73
+ <!-- Header -->
74
+ <header class="bg-gray-800 border-b border-gray-700 p-4 flex items-center justify-between">
75
+ <div class="flex items-center space-x-3">
76
+ <div class="bg-indigo-600 w-10 h-10 rounded-full flex items-center justify-center">
77
+ <i class="fas fa-robot text-white text-xl"></i>
78
+ </div>
79
+ <h1 class="text-xl font-bold">Project Orpheus</h1>
80
+ </div>
81
+ <div class="flex items-center space-x-4">
82
+ <button id="voiceToggle" class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-full flex items-center space-x-2 transition">
83
+ <i class="fas fa-microphone"></i>
84
+ <span>Live Mode</span>
85
+ </button>
86
+ <button class="text-gray-400 hover:text-white transition">
87
+ <i class="fas fa-cog text-xl"></i>
88
+ </button>
89
+ </div>
90
+ </header>
91
+
92
+ <!-- Main Content -->
93
+ <main class="flex-1 overflow-hidden flex flex-col">
94
+ <!-- Chat Container -->
95
+ <div id="chatContainer" class="flex-1 overflow-y-auto p-4 space-y-6">
96
+ <!-- Welcome Message -->
97
+ <div class="flex items-start space-x-3 max-w-3xl mx-auto">
98
+ <div class="bg-indigo-600 w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0">
99
+ <i class="fas fa-robot text-white text-xl"></i>
100
+ </div>
101
+ <div class="bg-gray-800 rounded-lg p-4 flex-1">
102
+ <h2 class="font-bold text-lg mb-2">Hello, I'm Orpheus</h2>
103
+ <p class="text-gray-300">I'm your AI development assistant, here to help with coding, debugging, documentation, and project organization. How can I assist you today?</p>
104
+ <div class="mt-4 grid grid-cols-1 md:grid-cols-2 gap-3">
105
+ <button class="bg-gray-700 hover:bg-gray-600 rounded-lg p-3 text-left transition">
106
+ <p class="font-medium">Explain this code:</p>
107
+ <p class="text-sm text-gray-400">function calculateTotal(items) { ... }</p>
108
+ </button>
109
+ <button class="bg-gray-700 hover:bg-gray-600 rounded-lg p-3 text-left transition">
110
+ <p class="font-medium">Debug this error:</p>
111
+ <p class="text-sm text-gray-400">TypeError: Cannot read property 'map' of undefined</p>
112
+ </button>
113
+ <button class="bg-gray-700 hover:bg-gray-600 rounded-lg p-3 text-left transition">
114
+ <p class="font-medium">Generate API docs:</p>
115
+ <p class="text-sm text-gray-400">For my Express.js routes</p>
116
+ </button>
117
+ <button class="bg-gray-700 hover:bg-gray-600 rounded-lg p-3 text-left transition">
118
+ <p class="font-medium">Organize my tasks:</p>
119
+ <p class="text-sm text-gray-400">From this meeting transcript</p>
120
+ </button>
121
+ </div>
122
+ </div>
123
+ </div>
124
+
125
+ <!-- Sample User Message -->
126
+ <div class="flex items-start space-x-3 max-w-3xl mx-auto justify-end">
127
+ <div class="bg-gray-700 rounded-lg p-4 flex-1 text-right">
128
+ <p>Can you help me optimize this React component? It's re-rendering too often.</p>
129
+ </div>
130
+ <div class="bg-indigo-600 w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0">
131
+ <i class="fas fa-user text-white text-xl"></i>
132
+ </div>
133
+ </div>
134
+
135
+ <!-- Sample AI Response -->
136
+ <div class="flex items-start space-x-3 max-w-3xl mx-auto">
137
+ <div class="bg-indigo-600 w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0">
138
+ <i class="fas fa-robot text-white text-xl"></i>
139
+ </div>
140
+ <div class="bg-gray-800 rounded-lg p-4 flex-1">
141
+ <div class="flex items-center justify-between mb-2">
142
+ <span class="font-bold">Orpheus</span>
143
+ <div class="flex space-x-2">
144
+ <button class="text-gray-400 hover:text-white transition">
145
+ <i class="fas fa-volume-up"></i>
146
+ </button>
147
+ <button class="text-gray-400 hover:text-white transition">
148
+ <i class="fas fa-copy"></i>
149
+ </button>
150
+ </div>
151
+ </div>
152
+ <div class="markdown-content">
153
+ <p>Certainly! React performance optimization is crucial. Here are some strategies for your component:</p>
154
+
155
+ <h3 class="font-bold mt-4">1. Use React.memo</h3>
156
+ <pre><code>const MyComponent = React.memo(function MyComponent(props) {
157
+ // Component implementation
158
+ });</code></pre>
159
+
160
+ <h3 class="font-bold mt-4">2. Use useCallback for event handlers</h3>
161
+ <pre><code>const handleClick = useCallback(() => {
162
+ // Handler logic
163
+ }, [dependencies]);</code></pre>
164
+
165
+ <h3 class="font-bold mt-4">3. Use useMemo for expensive calculations</h3>
166
+ <pre><code>const processedData = useMemo(() => {
167
+ return expensiveCalculation(data);
168
+ }, [data]);</code></pre>
169
+
170
+ <p class="mt-4">Would you like me to analyze a specific component or show you how to implement any of these?</p>
171
+ </div>
172
+ </div>
173
+ </div>
174
+ </div>
175
+
176
+ <!-- Voice Status Indicator (Hidden by default) -->
177
+ <div id="voiceStatus" class="hidden bg-gray-800 border-t border-gray-700 p-4">
178
+ <div class="max-w-3xl mx-auto flex items-center justify-center space-x-4">
179
+ <div class="waveform">
180
+ <div class="waveform-bar"></div>
181
+ <div class="waveform-bar"></div>
182
+ <div class="waveform-bar"></div>
183
+ <div class="waveform-bar"></div>
184
+ <div class="waveform-bar"></div>
185
+ </div>
186
+ <span class="text-gray-300">Listening...</span>
187
+ <button id="stopListening" class="bg-red-600 hover:bg-red-700 text-white px-3 py-1 rounded-full text-sm transition">
188
+ <i class="fas fa-stop"></i> Stop
189
+ </button>
190
+ </div>
191
+ </div>
192
+
193
+ <!-- Input Area -->
194
+ <div class="bg-gray-800 border-t border-gray-700 p-4">
195
+ <div class="max-w-3xl mx-auto">
196
+ <div class="flex items-end space-x-2">
197
+ <div class="flex-1 relative">
198
+ <textarea id="messageInput" rows="1" placeholder="Message Orpheus..." class="w-full bg-gray-700 rounded-lg p-3 pr-10 resize-none focus:outline-none focus:ring-2 focus:ring-indigo-500 transition" style="min-height: 44px;"></textarea>
199
+ <div class="absolute right-2 bottom-2 flex space-x-1">
200
+ <button class="text-gray-400 hover:text-white transition">
201
+ <i class="fas fa-paperclip"></i>
202
+ </button>
203
+ <button class="text-gray-400 hover:text-white transition">
204
+ <i class="fas fa-code"></i>
205
+ </button>
206
+ </div>
207
+ </div>
208
+ <button id="sendMessage" class="bg-indigo-600 hover:bg-indigo-700 text-white w-10 h-10 rounded-full flex items-center justify-center transition">
209
+ <i class="fas fa-paper-plane"></i>
210
+ </button>
211
+ </div>
212
+ <div class="mt-2 text-xs text-gray-500 flex justify-between">
213
+ <span>Orpheus remembers context from this conversation</span>
214
+ <button class="text-indigo-400 hover:text-indigo-300">Clear context</button>
215
+ </div>
216
+ </div>
217
+ </div>
218
+ </main>
219
+
220
+ <!-- Mobile Bottom Navigation (hidden on desktop) -->
221
+ <div class="md:hidden bg-gray-800 border-t border-gray-700 p-2">
222
+ <div class="flex justify-around">
223
+ <button class="text-gray-400 hover:text-white p-2 transition">
224
+ <i class="fas fa-home text-xl"></i>
225
+ </button>
226
+ <button class="text-gray-400 hover:text-white p-2 transition">
227
+ <i class="fas fa-file-code text-xl"></i>
228
+ </button>
229
+ <button class="text-gray-400 hover:text-white p-2 transition">
230
+ <i class="fas fa-tasks text-xl"></i>
231
+ </button>
232
+ <button class="text-gray-400 hover:text-white p-2 transition">
233
+ <i class="fas fa-book text-xl"></i>
234
+ </button>
235
+ </div>
236
+ </div>
237
+ </div>
238
+
239
+ <script>
240
+ // DOM Elements
241
+ const voiceToggle = document.getElementById('voiceToggle');
242
+ const voiceStatus = document.getElementById('voiceStatus');
243
+ const stopListening = document.getElementById('stopListening');
244
+ const messageInput = document.getElementById('messageInput');
245
+ const sendMessage = document.getElementById('sendMessage');
246
+ const chatContainer = document.getElementById('chatContainer');
247
+
248
+ // Auto-resize textarea
249
+ messageInput.addEventListener('input', function() {
250
+ this.style.height = 'auto';
251
+ this.style.height = (this.scrollHeight) + 'px';
252
+ });
253
+
254
+ // Send message on Enter (but allow Shift+Enter for new lines)
255
+ messageInput.addEventListener('keydown', function(e) {
256
+ if (e.key === 'Enter' && !e.shiftKey) {
257
+ e.preventDefault();
258
+ sendMessage.click();
259
+ }
260
+ });
261
+
262
+ // Send message button click
263
+ sendMessage.addEventListener('click', function() {
264
+ const message = messageInput.value.trim();
265
+ if (message) {
266
+ addMessageToChat(message, 'user');
267
+ messageInput.value = '';
268
+ messageInput.style.height = 'auto';
269
+
270
+ // Show typing indicator
271
+ const typingIndicator = document.createElement('div');
272
+ typingIndicator.className = 'flex items-start space-x-3 max-w-3xl mx-auto';
273
+ typingIndicator.innerHTML = `
274
+ <div class="bg-indigo-600 w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0">
275
+ <i class="fas fa-robot text-white text-xl"></i>
276
+ </div>
277
+ <div class="bg-gray-800 rounded-lg p-4 flex-1">
278
+ <div class="typing-indicator flex space-x-1">
279
+ <span></span>
280
+ <span></span>
281
+ <span></span>
282
+ </div>
283
+ </div>
284
+ `;
285
+ chatContainer.appendChild(typingIndicator);
286
+ chatContainer.scrollTop = chatContainer.scrollHeight;
287
+
288
+ // Simulate AI response after delay
289
+ setTimeout(() => {
290
+ typingIndicator.remove();
291
+ simulateAIResponse(message);
292
+ }, 1500 + Math.random() * 2000);
293
+ }
294
+ });
295
+
296
+ // Voice toggle
297
+ voiceToggle.addEventListener('click', function() {
298
+ if (voiceStatus.classList.contains('hidden')) {
299
+ // Start voice mode
300
+ voiceStatus.classList.remove('hidden');
301
+ messageInput.disabled = true;
302
+ voiceToggle.innerHTML = '<i class="fas fa-microphone-slash"></i><span>Exit Live</span>';
303
+ voiceToggle.classList.add('bg-red-600', 'hover:bg-red-700');
304
+ voiceToggle.classList.remove('bg-indigo-600', 'hover:bg-indigo-700');
305
+
306
+ // Simulate voice recognition after delay
307
+ setTimeout(() => {
308
+ const recognizedText = "How do I implement authentication in my Next.js app?";
309
+ addMessageToChat(recognizedText, 'user');
310
+
311
+ // Show typing indicator
312
+ const typingIndicator = document.createElement('div');
313
+ typingIndicator.className = 'flex items-start space-x-3 max-w-3xl mx-auto';
314
+ typingIndicator.innerHTML = `
315
+ <div class="bg-indigo-600 w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0">
316
+ <i class="fas fa-robot text-white text-xl"></i>
317
+ </div>
318
+ <div class="bg-gray-800 rounded-lg p-4 flex-1">
319
+ <div class="typing-indicator flex space-x-1">
320
+ <span></span>
321
+ <span></span>
322
+ <span></span>
323
+ </div>
324
+ </div>
325
+ `;
326
+ chatContainer.appendChild(typingIndicator);
327
+ chatContainer.scrollTop = chatContainer.scrollHeight;
328
+
329
+ // Simulate AI voice response
330
+ setTimeout(() => {
331
+ typingIndicator.remove();
332
+ simulateAIResponse(recognizedText, true);
333
+ }, 1000 + Math.random() * 1500);
334
+ }, 2000);
335
+ }
336
+ });
337
+
338
+ // Stop listening button
339
+ stopListening.addEventListener('click', function() {
340
+ voiceStatus.classList.add('hidden');
341
+ messageInput.disabled = false;
342
+ voiceToggle.innerHTML = '<i class="fas fa-microphone"></i><span>Live Mode</span>';
343
+ voiceToggle.classList.remove('bg-red-600', 'hover:bg-red-700');
344
+ voiceToggle.classList.add('bg-indigo-600', 'hover:bg-indigo-700');
345
+ });
346
+
347
+ // Helper function to add message to chat
348
+ function addMessageToChat(message, sender) {
349
+ const messageDiv = document.createElement('div');
350
+ messageDiv.className = `flex items-start space-x-3 max-w-3xl mx-auto ${sender === 'user' ? 'justify-end' : ''}`;
351
+
352
+ if (sender === 'user') {
353
+ messageDiv.innerHTML = `
354
+ <div class="bg-gray-700 rounded-lg p-4 flex-1 text-right">
355
+ <p>${message}</p>
356
+ </div>
357
+ <div class="bg-indigo-600 w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0">
358
+ <i class="fas fa-user text-white text-xl"></i>
359
+ </div>
360
+ `;
361
+ } else {
362
+ messageDiv.innerHTML = `
363
+ <div class="bg-indigo-600 w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0">
364
+ <i class="fas fa-robot text-white text-xl"></i>
365
+ </div>
366
+ <div class="bg-gray-800 rounded-lg p-4 flex-1">
367
+ <div class="flex items-center justify-between mb-2">
368
+ <span class="font-bold">Orpheus</span>
369
+ <div class="flex space-x-2">
370
+ <button class="text-gray-400 hover:text-white transition">
371
+ <i class="fas fa-volume-up"></i>
372
+ </button>
373
+ <button class="text-gray-400 hover:text-white transition">
374
+ <i class="fas fa-copy"></i>
375
+ </button>
376
+ </div>
377
+ </div>
378
+ <div class="markdown-content">
379
+ ${message}
380
+ </div>
381
+ </div>
382
+ `;
383
+ }
384
+
385
+ chatContainer.appendChild(messageDiv);
386
+ chatContainer.scrollTop = chatContainer.scrollHeight;
387
+ }
388
+
389
+ // Simulate AI response
390
+ function simulateAIResponse(userMessage, isVoice = false) {
391
+ let response;
392
+
393
+ if (userMessage.includes('optimize') || userMessage.includes('React')) {
394
+ response = `
395
+ <p>For optimizing your React component, here are some additional advanced techniques:</p>
396
+
397
+ <h3 class="font-bold mt-4">4. Use React Profiler</h3>
398
+ <pre><code>import { Profiler } from 'react';
399
+
400
+ &lt;Profiler id="MyComponent" onRender={onRenderCallback}&gt;
401
+ &lt;MyComponent /&gt;
402
+ &lt;/Profiler&gt;</code></pre>
403
+
404
+ <h3 class="font-bold mt-4">5. Virtualize long lists</h3>
405
+ <pre><code>import { FixedSizeList } from 'react-window';
406
+
407
+ &lt;FixedSizeList
408
+ height={400}
409
+ width={300}
410
+ itemSize={50}
411
+ itemCount={1000}
412
+ &gt;
413
+ {Row}
414
+ &lt;/FixedSizeList&gt;</code></pre>
415
+
416
+ <p class="mt-4">Would you like me to explain any of these in more detail or help implement them?</p>
417
+ `;
418
+ } else if (userMessage.includes('authentication') || userMessage.includes('Next.js')) {
419
+ response = `
420
+ <p>Implementing authentication in Next.js can be done several ways. Here's a comprehensive approach using NextAuth.js:</p>
421
+
422
+ <h3 class="font-bold mt-4">1. Install NextAuth</h3>
423
+ <pre><code>npm install next-auth</code></pre>
424
+
425
+ <h3 class="font-bold mt-4">2. Configure providers</h3>
426
+ <pre><code>// pages/api/auth/[...nextauth].js
427
+ import NextAuth from "next-auth"
428
+ import GitHubProvider from "next-auth/providers/github"
429
+
430
+ export default NextAuth({
431
+ providers: [
432
+ GitHubProvider({
433
+ clientId: process.env.GITHUB_ID,
434
+ clientSecret: process.env.GITHUB_SECRET,
435
+ }),
436
+ ],
437
+ })</code></pre>
438
+
439
+ <h3 class="font-bold mt-4">3. Add session provider</h3>
440
+ <pre><code>// pages/_app.js
441
+ import { SessionProvider } from "next-auth/react"
442
+
443
+ export default function App({
444
+ Component,
445
+ pageProps: { session, ...pageProps },
446
+ }) {
447
+ return (
448
+ &lt;SessionProvider session={session}&gt;
449
+ &lt;Component {...pageProps} /&gt;
450
+ &lt;/SessionProvider&gt;
451
+ )
452
+ }</code></pre>
453
+
454
+ <p class="mt-4">Would you like me to add email/password auth or explain how to protect routes?</p>
455
+ `;
456
+ } else {
457
+ response = `
458
+ <p>I'd be happy to help with that. Could you provide more details about:</p>
459
+ <ul class="list-disc pl-5 mt-2 space-y-1">
460
+ <li>The specific problem you're trying to solve</li>
461
+ <li>Your current tech stack</li>
462
+ <li>Any error messages you're seeing</li>
463
+ </ul>
464
+ <p class="mt-4">The more context you provide, the better I can assist you!</p>
465
+ `;
466
+ }
467
+
468
+ addMessageToChat(response, 'ai');
469
+
470
+ if (isVoice) {
471
+ // Simulate voice synthesis
472
+ setTimeout(() => {
473
+ const audio = new Audio('https://actions.google.com/sounds/v1/alarms/beep_short.ogg');
474
+ audio.play();
475
+ }, 500);
476
+ }
477
+ }
478
+ </script>
479
+ <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=jblast94/project-orpheus" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
480
+ </html>