7dix commited on
Commit
db196e6
·
verified ·
1 Parent(s): 537cab8

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +629 -19
  3. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Chat Frontend
3
- emoji: 🐨
4
- colorFrom: pink
5
- colorTo: indigo
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: chat-frontend
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: pink
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,629 @@
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>Modern Chat UI with Accordion</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
+ <script>
10
+ tailwind.config = {
11
+ theme: {
12
+ extend: {
13
+ colors: {
14
+ primary: {
15
+ 50: '#f0f9ff',
16
+ 100: '#e0f2fe',
17
+ 200: '#bae6fd',
18
+ 300: '#7dd3fc',
19
+ 400: '#38bdf8',
20
+ 500: '#0ea5e9',
21
+ 600: '#0284c7',
22
+ 700: '#0369a1',
23
+ 800: '#075985',
24
+ 900: '#0c4a6e',
25
+ },
26
+ secondary: {
27
+ 50: '#f8fafc',
28
+ 100: '#f1f5f9',
29
+ 200: '#e2e8f0',
30
+ 300: '#cbd5e1',
31
+ 400: '#94a3b8',
32
+ 500: '#64748b',
33
+ 600: '#475569',
34
+ 700: '#334155',
35
+ 800: '#1e293b',
36
+ 900: '#0f172a',
37
+ },
38
+ accent: {
39
+ 50: '#f5f3ff',
40
+ 100: '#ede9fe',
41
+ 200: '#ddd6fe',
42
+ 300: '#c4b5fd',
43
+ 400: '#a78bfa',
44
+ 500: '#8b5cf6',
45
+ 600: '#7c3aed',
46
+ 700: '#6d28d9',
47
+ 800: '#5b21b6',
48
+ 900: '#4c1d95',
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ </script>
55
+ <style>
56
+ @keyframes pulse {
57
+ 0%, 100% { opacity: 1; }
58
+ 50% { opacity: 0.5; }
59
+ }
60
+
61
+ .typing-indicator {
62
+ display: inline-flex;
63
+ align-items: center;
64
+ }
65
+
66
+ .typing-dot {
67
+ width: 8px;
68
+ height: 8px;
69
+ border-radius: 50%;
70
+ background-color: #64748b;
71
+ margin-right: 4px;
72
+ animation: pulse 1.5s infinite ease-in-out;
73
+ }
74
+
75
+ .typing-dot:nth-child(1) {
76
+ animation-delay: 0s;
77
+ }
78
+
79
+ .typing-dot:nth-child(2) {
80
+ animation-delay: 0.3s;
81
+ }
82
+
83
+ .typing-dot:nth-child(3) {
84
+ animation-delay: 0.6s;
85
+ margin-right: 0;
86
+ }
87
+
88
+ .message-bubble {
89
+ position: relative;
90
+ transition: all 0.3s ease;
91
+ }
92
+
93
+ .message-bubble:after {
94
+ content: '';
95
+ position: absolute;
96
+ bottom: 0;
97
+ width: 0;
98
+ height: 0;
99
+ border: 10px solid transparent;
100
+ }
101
+
102
+ .user-message:after {
103
+ right: -10px;
104
+ border-left-color: #0ea5e9;
105
+ border-right: 0;
106
+ border-bottom: 0;
107
+ }
108
+
109
+ .bot-message:after {
110
+ left: -10px;
111
+ border-right-color: #f1f5f9;
112
+ border-left: 0;
113
+ border-bottom: 0;
114
+ }
115
+
116
+ .markdown-body pre {
117
+ background-color: #1e293b;
118
+ padding: 12px;
119
+ border-radius: 8px;
120
+ overflow-x: auto;
121
+ margin: 8px 0;
122
+ }
123
+
124
+ .markdown-body code {
125
+ background-color: #1e293b;
126
+ padding: 2px 4px;
127
+ border-radius: 4px;
128
+ font-family: 'Courier New', Courier, monospace;
129
+ }
130
+
131
+ .markdown-body a {
132
+ color: #0ea5e9;
133
+ text-decoration: underline;
134
+ }
135
+
136
+ .markdown-body blockquote {
137
+ border-left: 4px solid #64748b;
138
+ padding-left: 12px;
139
+ margin-left: 0;
140
+ color: #64748b;
141
+ }
142
+
143
+ .markdown-body table {
144
+ border-collapse: collapse;
145
+ width: 100%;
146
+ margin: 12px 0;
147
+ }
148
+
149
+ .markdown-body th, .markdown-body td {
150
+ border: 1px solid #cbd5e1;
151
+ padding: 8px;
152
+ }
153
+
154
+ .markdown-body th {
155
+ background-color: #f1f5f9;
156
+ }
157
+
158
+ .tool-card {
159
+ transition: all 0.3s ease;
160
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
161
+ }
162
+
163
+ .tool-card:hover {
164
+ transform: translateY(-2px);
165
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
166
+ }
167
+
168
+ .tool-loading {
169
+ background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
170
+ background-size: 200% 100%;
171
+ animation: shimmer 1.5s infinite;
172
+ }
173
+
174
+ @keyframes shimmer {
175
+ 0% { background-position: 200% 0; }
176
+ 100% { background-position: -200% 0; }
177
+ }
178
+
179
+ .chat-container {
180
+ height: calc(100vh - 80px);
181
+ }
182
+
183
+ .messages-container {
184
+ scrollbar-width: thin;
185
+ scrollbar-color: #cbd5e1 #f1f5f9;
186
+ }
187
+
188
+ .messages-container::-webkit-scrollbar {
189
+ width: 6px;
190
+ }
191
+
192
+ .messages-container::-webkit-scrollbar-track {
193
+ background: #f1f5f9;
194
+ }
195
+
196
+ .messages-container::-webkit-scrollbar-thumb {
197
+ background-color: #cbd5e1;
198
+ border-radius: 20px;
199
+ }
200
+
201
+ .input-box {
202
+ transition: all 0.3s ease;
203
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
204
+ }
205
+
206
+ .input-box:focus-within {
207
+ box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
208
+ }
209
+
210
+ .send-button {
211
+ transition: all 0.3s ease;
212
+ }
213
+
214
+ .send-button:hover {
215
+ transform: translateY(-1px);
216
+ }
217
+
218
+ .send-button:active {
219
+ transform: translateY(1px);
220
+ }
221
+
222
+ .fade-in {
223
+ animation: fadeIn 0.3s ease-in-out;
224
+ }
225
+
226
+ @keyframes fadeIn {
227
+ from { opacity: 0; transform: translateY(10px); }
228
+ to { opacity: 1; transform: translateY(0); }
229
+ }
230
+
231
+ .accordion-content {
232
+ max-height: 0;
233
+ overflow: hidden;
234
+ transition: max-height 0.3s ease-out;
235
+ }
236
+
237
+ .accordion-content.open {
238
+ max-height: 1000px; /* Adjust based on your content */
239
+ }
240
+
241
+ .accordion-header {
242
+ cursor: pointer;
243
+ transition: background-color 0.2s ease;
244
+ }
245
+
246
+ .accordion-header:hover {
247
+ background-color: #f8fafc;
248
+ }
249
+
250
+ .rotate-180 {
251
+ transform: rotate(180deg);
252
+ }
253
+
254
+ .transition-transform {
255
+ transition: transform 0.2s ease;
256
+ }
257
+ </style>
258
+ </head>
259
+ <body class="bg-gray-50 font-sans antialiased">
260
+ <div class="flex h-screen">
261
+ <!-- Sidebar -->
262
+ <div class="w-64 bg-white border-r border-gray-200 flex flex-col">
263
+ <div class="p-4 border-b border-gray-200">
264
+ <h1 class="text-xl font-bold text-gray-800">ChatGPT</h1>
265
+ <p class="text-sm text-gray-500">Modern chat interface</p>
266
+ </div>
267
+ <div class="p-4">
268
+ <button class="w-full bg-primary-600 hover:bg-primary-700 text-white py-2 px-4 rounded-lg flex items-center justify-center">
269
+ <i class="fas fa-plus mr-2"></i>
270
+ New Chat
271
+ </button>
272
+ </div>
273
+ <div class="flex-1 overflow-y-auto p-2">
274
+ <div class="space-y-1">
275
+ <div class="p-2 rounded-lg hover:bg-gray-100 cursor-pointer flex items-center">
276
+ <i class="fas fa-comment-alt mr-2 text-gray-500"></i>
277
+ <span class="truncate">Getting started with AI</span>
278
+ </div>
279
+ <div class="p-2 rounded-lg hover:bg-gray-100 cursor-pointer flex items-center">
280
+ <i class="fas fa-comment-alt mr-2 text-gray-500"></i>
281
+ <span class="truncate">Marketing strategy</span>
282
+ </div>
283
+ <div class="p-2 rounded-lg hover:bg-gray-100 cursor-pointer flex items-center">
284
+ <i class="fas fa-comment-alt mr-2 text-gray-500"></i>
285
+ <span class="truncate">Code review</span>
286
+ </div>
287
+ <div class="p-2 rounded-lg hover:bg-gray-100 cursor-pointer flex items-center">
288
+ <i class="fas fa-comment-alt mr-2 text-gray-500"></i>
289
+ <span class="truncate">Content ideas</span>
290
+ </div>
291
+ <div class="p-2 rounded-lg hover:bg-gray-100 cursor-pointer flex items-center">
292
+ <i class="fas fa-comment-alt mr-2 text-gray-500"></i>
293
+ <span class="truncate">Product feedback</span>
294
+ </div>
295
+ </div>
296
+ </div>
297
+ <div class="p-4 border-t border-gray-200">
298
+ <div class="flex items-center space-x-2">
299
+ <div class="w-8 h-8 rounded-full bg-primary-100 flex items-center justify-center text-primary-600">
300
+ <i class="fas fa-user"></i>
301
+ </div>
302
+ <div>
303
+ <p class="text-sm font-medium">John Doe</p>
304
+ <p class="text-xs text-gray-500">Free Plan</p>
305
+ </div>
306
+ </div>
307
+ </div>
308
+ </div>
309
+
310
+ <!-- Main Chat Area -->
311
+ <div class="flex-1 flex flex-col">
312
+ <!-- Chat Header -->
313
+ <div class="bg-white border-b border-gray-200 p-4">
314
+ <div class="flex items-center justify-between">
315
+ <h2 class="text-lg font-semibold text-gray-800">Getting started with AI</h2>
316
+ <div class="flex space-x-2">
317
+ <button class="p-2 rounded-full hover:bg-gray-100">
318
+ <i class="fas fa-share-alt text-gray-500"></i>
319
+ </button>
320
+ <button class="p-2 rounded-full hover:bg-gray-100">
321
+ <i class="fas fa-ellipsis-h text-gray-500"></i>
322
+ </button>
323
+ </div>
324
+ </div>
325
+ </div>
326
+
327
+ <!-- Messages Container -->
328
+ <div class="flex-1 overflow-y-auto messages-container p-4 bg-gray-50">
329
+ <div class="max-w-3xl mx-auto space-y-6">
330
+ <!-- Welcome Message -->
331
+ <div class="fade-in">
332
+ <div class="flex items-start space-x-3">
333
+ <div class="w-8 h-8 rounded-full bg-primary-100 flex items-center justify-center text-primary-600">
334
+ <i class="fas fa-robot"></i>
335
+ </div>
336
+ <div class="flex-1">
337
+ <div class="bg-white p-4 rounded-xl rounded-tl-none shadow-sm bot-message">
338
+ <h3 class="font-bold text-gray-800 mb-2">Welcome to ChatGPT!</h3>
339
+ <div class="markdown-body text-gray-700">
340
+ <p>I'm an AI assistant here to help you with any questions you might have. Here are some things I can help with:</p>
341
+ <ul class="list-disc pl-5 mt-2">
342
+ <li>Answering questions on various topics</li>
343
+ <li>Generating creative content</li>
344
+ <li>Analyzing and summarizing documents</li>
345
+ <li>Providing coding assistance</li>
346
+ <li>And much more!</li>
347
+ </ul>
348
+ <p class="mt-2">What would you like to know today?</p>
349
+ </div>
350
+ </div>
351
+ <div class="mt-2 text-xs text-gray-500 flex items-center space-x-2">
352
+ <button class="hover:text-primary-600">
353
+ <i class="far fa-thumbs-up"></i>
354
+ </button>
355
+ <button class="hover:text-primary-600">
356
+ <i class="far fa-thumbs-down"></i>
357
+ </button>
358
+ <button class="hover:text-primary-600">
359
+ <i class="far fa-copy"></i>
360
+ </button>
361
+ </div>
362
+ </div>
363
+ </div>
364
+ </div>
365
+
366
+ <!-- User Message -->
367
+ <div class="fade-in">
368
+ <div class="flex items-start justify-end space-x-3">
369
+ <div class="flex-1 max-w-xl">
370
+ <div class="bg-primary-600 text-white p-4 rounded-xl rounded-tr-none shadow-sm user-message">
371
+ <p>How can I get started with machine learning?</p>
372
+ </div>
373
+ <div class="mt-2 text-xs text-gray-500 flex items-center justify-end space-x-2">
374
+ <button class="hover:text-primary-600">
375
+ <i class="far fa-copy"></i>
376
+ </button>
377
+ </div>
378
+ </div>
379
+ <div class="w-8 h-8 rounded-full bg-primary-600 flex items-center justify-center text-white">
380
+ <i class="fas fa-user"></i>
381
+ </div>
382
+ </div>
383
+ </div>
384
+
385
+ <!-- Bot Message with Tools -->
386
+ <div class="fade-in">
387
+ <div class="flex items-start space-x-3">
388
+ <div class="w-8 h-8 rounded-full bg-primary-100 flex items-center justify-center text-primary-600">
389
+ <i class="fas fa-robot"></i>
390
+ </div>
391
+ <div class="flex-1">
392
+ <!-- Accordion for Reasoning Section -->
393
+ <div class="bg-white rounded-xl shadow-sm mb-3 overflow-hidden">
394
+ <div
395
+ class="accordion-header p-4 flex items-center justify-between"
396
+ onclick="toggleAccordion(this, 'reasoning-accordion')"
397
+ >
398
+ <div class="flex items-center text-sm font-medium text-gray-700">
399
+ <i class="fas fa-brain mr-2 text-primary-500"></i>
400
+ <span>Reasoning Process</span>
401
+ </div>
402
+ <i class="fas fa-chevron-down text-gray-500 transition-transform"></i>
403
+ </div>
404
+ <div id="reasoning-accordion" class="accordion-content">
405
+ <div class="px-4 pb-4 markdown-body text-gray-700">
406
+ <p>To answer this question, I'll break it down into key steps for getting started with machine learning:</p>
407
+ <ol class="list-decimal pl-5">
408
+ <li>Learn the fundamentals of programming and mathematics</li>
409
+ <li>Understand basic ML concepts</li>
410
+ <li>Choose a programming language (Python recommended)</li>
411
+ <li>Work on small projects</li>
412
+ </ol>
413
+ </div>
414
+ </div>
415
+ </div>
416
+
417
+ <!-- Accordion for Tool Card -->
418
+ <div class="bg-white rounded-xl shadow-sm mb-3 overflow-hidden">
419
+ <div
420
+ class="accordion-header p-4 flex items-center justify-between"
421
+ onclick="toggleAccordion(this, 'tool-accordion')"
422
+ >
423
+ <div class="flex items-center text-sm font-medium text-gray-700">
424
+ <i class="fas fa-cog mr-2 text-primary-500"></i>
425
+ <span>Tool Execution</span>
426
+ </div>
427
+ <i class="fas fa-chevron-down text-gray-500 transition-transform"></i>
428
+ </div>
429
+ <div id="tool-accordion" class="accordion-content">
430
+ <div class="px-4 pb-4">
431
+ <div class="tool-card bg-gray-50 p-4 rounded-lg">
432
+ <div class="flex items-center space-x-2">
433
+ <div class="w-4 h-4 rounded-full bg-primary-600 animate-pulse"></div>
434
+ <span class="text-sm text-gray-700">Finding the best online courses...</span>
435
+ </div>
436
+ </div>
437
+ </div>
438
+ </div>
439
+ </div>
440
+
441
+ <!-- Main Response -->
442
+ <div class="bg-white p-4 rounded-xl rounded-tl-none shadow-sm bot-message">
443
+ <div class="markdown-body text-gray-700">
444
+ <h3>Getting Started with Machine Learning</h3>
445
+ <p>Here's a step-by-step guide to begin your machine learning journey:</p>
446
+
447
+ <h4>1. Learn the Prerequisites</h4>
448
+ <ul>
449
+ <li><strong>Programming:</strong> Python is the most popular language for ML</li>
450
+ <li><strong>Mathematics:</strong> Focus on linear algebra, calculus, and statistics</li>
451
+ </ul>
452
+
453
+ <h4>2. Understand ML Fundamentals</h4>
454
+ <p>Key concepts to learn:</p>
455
+ <pre><code class="language-python"># Example of a simple linear regression in Python
456
+ from sklearn.linear_model import LinearRegression
457
+ model = LinearRegression()
458
+ model.fit(X_train, y_train)
459
+ predictions = model.predict(X_test)</code></pre>
460
+
461
+ <h4>3. Recommended Resources</h4>
462
+ <table>
463
+ <thead>
464
+ <tr>
465
+ <th>Resource</th>
466
+ <th>Type</th>
467
+ <th>Difficulty</th>
468
+ </tr>
469
+ </thead>
470
+ <tbody>
471
+ <tr>
472
+ <td>Andrew Ng's ML Course</td>
473
+ <td>Online Course</td>
474
+ <td>Beginner</td>
475
+ </tr>
476
+ <tr>
477
+ <td>Hands-On ML with Scikit-Learn</td>
478
+ <td>Book</td>
479
+ <td>Intermediate</td>
480
+ </tr>
481
+ </tbody>
482
+ </table>
483
+
484
+ <h4>4. Practical Projects</h4>
485
+ <p>Start with simple projects like:</p>
486
+ <ul>
487
+ <li>Predicting house prices</li>
488
+ <li>Image classification with MNIST</li>
489
+ <li>Sentiment analysis on tweets</li>
490
+ </ul>
491
+
492
+ <blockquote>
493
+ Remember: Machine learning is a marathon, not a sprint. Take your time to understand the concepts thoroughly.
494
+ </blockquote>
495
+ </div>
496
+ </div>
497
+
498
+ <div class="mt-2 text-xs text-gray-500 flex items-center space-x-2">
499
+ <button class="hover:text-primary-600">
500
+ <i class="far fa-thumbs-up"></i>
501
+ </button>
502
+ <button class="hover:text-primary-600">
503
+ <i class="far fa-thumbs-down"></i>
504
+ </button>
505
+ <button class="hover:text-primary-600">
506
+ <i class="far fa-copy"></i>
507
+ </button>
508
+ </div>
509
+ </div>
510
+ </div>
511
+ </div>
512
+
513
+ <!-- Bot Typing Indicator -->
514
+ <div class="flex items-start space-x-3">
515
+ <div class="w-8 h-8 rounded-full bg-primary-100 flex items-center justify-center text-primary-600">
516
+ <i class="fas fa-robot"></i>
517
+ </div>
518
+ <div class="bg-white p-3 rounded-xl rounded-tl-none shadow-sm">
519
+ <div class="typing-indicator">
520
+ <div class="typing-dot"></div>
521
+ <div class="typing-dot"></div>
522
+ <div class="typing-dot"></div>
523
+ </div>
524
+ </div>
525
+ </div>
526
+ </div>
527
+ </div>
528
+
529
+ <!-- Input Area -->
530
+ <div class="bg-white border-t border-gray-200 p-4">
531
+ <div class="max-w-3xl mx-auto">
532
+ <form class="relative">
533
+ <div class="input-box flex items-center border border-gray-300 rounded-lg overflow-hidden bg-white">
534
+ <textarea
535
+ class="flex-1 py-3 px-4 focus:outline-none resize-none"
536
+ placeholder="Message ChatGPT..."
537
+ rows="1"
538
+ style="min-height: 44px; max-height: 200px;"
539
+ ></textarea>
540
+ <button
541
+ type="submit"
542
+ class="send-button bg-primary-600 text-white p-2 m-1 rounded-lg hover:bg-primary-700"
543
+ >
544
+ <i class="fas fa-paper-plane"></i>
545
+ </button>
546
+ </div>
547
+ <div class="text-xs text-gray-500 mt-2 text-center">
548
+ ChatGPT can make mistakes. Consider checking important information.
549
+ </div>
550
+ </form>
551
+ </div>
552
+ </div>
553
+ </div>
554
+ </div>
555
+
556
+ <script>
557
+ // Accordion functionality
558
+ function toggleAccordion(header, contentId) {
559
+ const content = document.getElementById(contentId);
560
+ const icon = header.querySelector('i.fa-chevron-down');
561
+
562
+ content.classList.toggle('open');
563
+ icon.classList.toggle('rotate-180');
564
+ }
565
+
566
+ // Auto-close accordions when streaming starts
567
+ function closeAllAccordions() {
568
+ document.querySelectorAll('.accordion-content').forEach(content => {
569
+ content.classList.remove('open');
570
+ });
571
+ document.querySelectorAll('.accordion-header i.fa-chevron-down').forEach(icon => {
572
+ icon.classList.remove('rotate-180');
573
+ });
574
+ }
575
+
576
+ // Simulate dynamic behavior
577
+ document.addEventListener('DOMContentLoaded', function() {
578
+ // Auto-resize textarea
579
+ const textarea = document.querySelector('textarea');
580
+ textarea.addEventListener('input', function() {
581
+ this.style.height = 'auto';
582
+ this.style.height = (this.scrollHeight) + 'px';
583
+ });
584
+
585
+ // Simulate typing effect and auto-close accordions when streaming starts
586
+ setTimeout(() => {
587
+ closeAllAccordions();
588
+
589
+ const typingIndicator = document.querySelector('.typing-indicator').parentElement.parentElement;
590
+ typingIndicator.classList.add('hidden');
591
+
592
+ const newMessage = document.createElement('div');
593
+ newMessage.className = 'fade-in';
594
+ newMessage.innerHTML = `
595
+ <div class="flex items-start space-x-3">
596
+ <div class="w-8 h-8 rounded-full bg-primary-100 flex items-center justify-center text-primary-600">
597
+ <i class="fas fa-robot"></i>
598
+ </div>
599
+ <div class="flex-1">
600
+ <div class="bg-white p-4 rounded-xl rounded-tl-none shadow-sm bot-message">
601
+ <div class="markdown-body text-gray-700">
602
+ <p>Would you like me to recommend specific projects based on your current skill level? I can tailor suggestions to help you progress effectively.</p>
603
+ </div>
604
+ </div>
605
+ <div class="mt-2 text-xs text-gray-500 flex items-center space-x-2">
606
+ <button class="hover:text-primary-600">
607
+ <i class="far fa-thumbs-up"></i>
608
+ </button>
609
+ <button class="hover:text-primary-600">
610
+ <i class="far fa-thumbs-down"></i>
611
+ </button>
612
+ <button class="hover:text-primary-600">
613
+ <i class="far fa-copy"></i>
614
+ </button>
615
+ </div>
616
+ </div>
617
+ </div>
618
+ `;
619
+
620
+ typingIndicator.parentElement.appendChild(newMessage);
621
+
622
+ // Scroll to bottom
623
+ const messagesContainer = document.querySelector('.messages-container');
624
+ messagesContainer.scrollTop = messagesContainer.scrollHeight;
625
+ }, 2000);
626
+ });
627
+ </script>
628
+ <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=7dix/chat-frontend" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
629
+ </html>
prompts.txt ADDED
File without changes