THEMONEYHOLLIC commited on
Commit
cc2c7e0
·
verified ·
1 Parent(s): ef84cee

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +711 -19
  3. prompts.txt +2 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Tumaminutes Ai
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: tumaminutes-ai
3
+ emoji: 🐳
4
+ colorFrom: purple
5
  colorTo: purple
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,711 @@
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>MeetMinutes AI | Smart Meeting Notes</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; }
26
+ to { opacity: 1; }
27
+ }
28
+ .transcript-container {
29
+ max-height: 300px;
30
+ overflow-y: auto;
31
+ scrollbar-width: thin;
32
+ background: rgba(249, 250, 251, 0.8);
33
+ backdrop-filter: blur(5px);
34
+ border-radius: 0.75rem;
35
+ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
36
+ }
37
+ .transcript-container::-webkit-scrollbar {
38
+ width: 6px;
39
+ }
40
+ .transcript-container::-webkit-scrollbar-thumb {
41
+ background-color: rgba(156, 163, 175, 0.5);
42
+ border-radius: 3px;
43
+ }
44
+ .highlight-decision {
45
+ background-color: rgba(167, 243, 208, 0.5);
46
+ border-left: 3px solid #10b981;
47
+ }
48
+ .highlight-task {
49
+ background-color: rgba(191, 219, 254, 0.5);
50
+ border-left: 3px solid #3b82f6;
51
+ }
52
+ .highlight-question {
53
+ background-color: rgba(253, 230, 138, 0.5);
54
+ border-left: 3px solid #f59e0b;
55
+ }
56
+ .highlight-deadline {
57
+ background-color: rgba(252, 231, 243, 0.5);
58
+ border-left: 3px solid #ec4899;
59
+ }
60
+ .speaker-bubble {
61
+ border-radius: 1rem;
62
+ padding: 0.75rem 1rem;
63
+ margin-bottom: 0.75rem;
64
+ max-width: 85%;
65
+ position: relative;
66
+ opacity: 0;
67
+ animation: fadeIn 0.3s ease-in forwards;
68
+ }
69
+ .speaker-you {
70
+ background-color: #6366f1;
71
+ color: white;
72
+ align-self: flex-end;
73
+ margin-left: 15%;
74
+ }
75
+ .speaker-other {
76
+ background-color: #f3f4f6;
77
+ color: #1f2937;
78
+ align-self: flex-start;
79
+ margin-right: 15%;
80
+ }
81
+ .speaker-name {
82
+ font-weight: 600;
83
+ font-size: 0.875rem;
84
+ margin-bottom: 0.25rem;
85
+ }
86
+ .real-time-indicator {
87
+ position: absolute;
88
+ top: -8px;
89
+ right: -8px;
90
+ width: 16px;
91
+ height: 16px;
92
+ background-color: #ef4444;
93
+ border-radius: 50%;
94
+ animation: pulse 1.5s infinite;
95
+ border: 2px solid white;
96
+ }
97
+ .language-selector.active {
98
+ background-color: #6366f1 !important;
99
+ color: white !important;
100
+ }
101
+ .glow-effect {
102
+ box-shadow: 0 0 10px rgba(99, 102, 241, 0.7);
103
+ }
104
+ .recording-animation {
105
+ animation: recordingPulse 1.5s infinite;
106
+ }
107
+ @keyframes recordingPulse {
108
+ 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
109
+ 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
110
+ 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
111
+ }
112
+ .typing-indicator {
113
+ display: inline-block;
114
+ width: 12px;
115
+ height: 12px;
116
+ background-color: #9ca3af;
117
+ border-radius: 50%;
118
+ margin-right: 4px;
119
+ animation: typingAnimation 1.4s infinite ease-in-out;
120
+ }
121
+ .typing-indicator:nth-child(2) {
122
+ animation-delay: 0.2s;
123
+ }
124
+ .typing-indicator:nth-child(3) {
125
+ animation-delay: 0.4s;
126
+ }
127
+ @keyframes typingAnimation {
128
+ 0%, 60%, 100% { transform: translateY(0); }
129
+ 30% { transform: translateY(-5px); }
130
+ }
131
+ .typewriter {
132
+ overflow: hidden;
133
+ border-right: .15em solid #6366f1;
134
+ white-space: nowrap;
135
+ margin: 0 auto;
136
+ letter-spacing: .15em;
137
+ animation:
138
+ typing 3.5s steps(40, end),
139
+ blink-caret .75s step-end infinite;
140
+ }
141
+ @keyframes typing {
142
+ from { width: 0 }
143
+ to { width: 100% }
144
+ }
145
+ @keyframes blink-caret {
146
+ from, to { border-color: transparent }
147
+ 50% { border-color: #6366f1; }
148
+ }
149
+ </style>
150
+ </head>
151
+ <body class="bg-gray-50 min-h-screen">
152
+ <div class="gradient-bg text-white">
153
+ <div class="container mx-auto px-4 py-8">
154
+ <div class="flex justify-between items-center">
155
+ <div class="flex items-center space-x-2">
156
+ <i class="fas fa-clock text-2xl"></i>
157
+ <h1 class="text-2xl font-bold">MeetMinutes AI</h1>
158
+ </div>
159
+ <button id="auth-btn" class="bg-white text-indigo-600 px-4 py-2 rounded-lg font-medium hover:bg-gray-100 transition flex items-center space-x-2">
160
+ <i class="fab fa-google mr-1"></i>
161
+ <span>Connect Google Meet</span>
162
+ </button>
163
+ </div>
164
+
165
+ <div class="mt-12 text-center">
166
+ <h2 class="text-4xl font-bold mb-4">Never Miss Important Meeting Details Again</h2>
167
+ <p class="text-xl max-w-2xl mx-auto">AI-powered transcription, translation, and smart summarization for your Google Meet calls</p>
168
+ </div>
169
+
170
+ <div class="mt-8 max-w-4xl mx-auto bg-white rounded-xl shadow-lg overflow-hidden" id="meeting-container">
171
+ <div class="p-6">
172
+ <div class="flex justify-between items-center mb-6">
173
+ <div class="flex items-center space-x-3">
174
+ <h3 class="text-xl font-semibold text-gray-800">Current Meeting</h3>
175
+ <div id="meeting-timer" class="text-sm bg-gray-100 px-2 py-1 rounded-md text-gray-600 hidden">
176
+ <i class="fas fa-clock mr-1"></i>
177
+ <span>00:00:00</span>
178
+ </div>
179
+ </div>
180
+ <div class="flex space-x-2">
181
+ <button id="start-btn" class="bg-green-500 text-white px-4 py-2 rounded-lg hover:bg-green-600 transition flex items-center space-x-2">
182
+ <i class="fas fa-microphone"></i>
183
+ <span>Start Recording</span>
184
+ </button>
185
+ <button id="stop-btn" class="bg-red-500 text-white px-4 py-2 rounded-lg hover:bg-red-600 transition hidden flex items-center space-x-2 recording-animation">
186
+ <i class="fas fa-stop"></i>
187
+ <span>Stop</span>
188
+ </button>
189
+ </div>
190
+ </div>
191
+
192
+ <div id="recording-status" class="hidden mb-6 bg-blue-50 text-blue-800 p-4 rounded-lg flex items-center">
193
+ <div class="pulse-animation mr-3">
194
+ <i class="fas fa-circle text-red-500"></i>
195
+ </div>
196
+ <span>Recording meeting in progress...</span>
197
+ </div>
198
+
199
+ <div id="transcription-container" class="hidden">
200
+ <div class="mb-6">
201
+ <label class="block text-gray-700 mb-2">Select Output Language:</label>
202
+ <div class="flex space-x-4">
203
+ <button id="english-btn" class="language-btn bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 transition flex items-center space-x-2 active">
204
+ <i class="fas fa-language"></i>
205
+ <span>English</span>
206
+ </button>
207
+ <button id="swahili-btn" class="language-btn bg-indigo-100 text-indigo-700 px-4 py-2 rounded-lg hover:bg-indigo-200 transition flex items-center space-x-2">
208
+ <i class="fas fa-language"></i>
209
+ <span>Swahili</span>
210
+ </button>
211
+ </div>
212
+ </div>
213
+
214
+ <div class="mb-6">
215
+ <div class="flex justify-between items-center mb-2">
216
+ <label class="block text-gray-700">Meeting Transcript:</label>
217
+ <div id="typing-status" class="text-sm text-gray-500 flex items-center hidden">
218
+ <span class="mr-2">AI is processing</span>
219
+ <div class="typing-indicator"></div>
220
+ <div class="typing-indicator"></div>
221
+ <div class="typing-indicator"></div>
222
+ </div>
223
+ </div>
224
+ <div id="transcript" class="transcript-container p-4 flex flex-col space-y-3">
225
+ <!-- Transcript will appear here -->
226
+ </div>
227
+ </div>
228
+
229
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
230
+ <div>
231
+ <h4 class="text-lg font-semibold text-gray-800 mb-3 flex items-center">
232
+ <i class="fas fa-star mr-2 text-yellow-500"></i>
233
+ Key Highlights
234
+ </h4>
235
+ <div id="highlights" class="space-y-3">
236
+ <!-- Highlights will appear here -->
237
+ </div>
238
+ </div>
239
+
240
+ <div>
241
+ <h4 class="text-lg font-semibold text-gray-800 mb-3 flex items-center">
242
+ <i class="fas fa-file-alt mr-2 text-indigo-500"></i>
243
+ Meeting Summary
244
+ </h4>
245
+ <div id="summary" class="bg-indigo-50 p-4 rounded-lg text-gray-700 min-h-[150px]">
246
+ <!-- Summary will appear here -->
247
+ </div>
248
+ </div>
249
+ </div>
250
+
251
+ <div class="mt-6 flex justify-end space-x-3">
252
+ <button id="copy-btn" class="bg-gray-200 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-300 transition flex items-center space-x-2">
253
+ <i class="fas fa-copy"></i>
254
+ <span>Copy Notes</span>
255
+ </button>
256
+ <button id="download-btn" class="bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 transition flex items-center space-x-2">
257
+ <i class="fas fa-download"></i>
258
+ <span>Download</span>
259
+ </button>
260
+ <button id="share-btn" class="bg-green-500 text-white px-4 py-2 rounded-lg hover:bg-green-600 transition flex items-center space-x-2">
261
+ <i class="fas fa-share-alt"></i>
262
+ <span>Share</span>
263
+ </button>
264
+ </div>
265
+ </div>
266
+ </div>
267
+ </div>
268
+ </div>
269
+ </div>
270
+
271
+ <div class="container mx-auto px-4 py-12">
272
+ <h2 class="text-3xl font-bold text-center text-gray-800 mb-8">How It Works</h2>
273
+
274
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
275
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition transform hover:-translate-y-1">
276
+ <div class="text-indigo-600 mb-4">
277
+ <i class="fas fa-microphone text-4xl"></i>
278
+ </div>
279
+ <h3 class="text-xl font-semibold mb-2">1. Record Your Meeting</h3>
280
+ <p class="text-gray-600">Simply click "Start Recording" when your Google Meet begins. Our AI will automatically capture all audio.</p>
281
+ </div>
282
+
283
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition transform hover:-translate-y-1">
284
+ <div class="text-indigo-600 mb-4">
285
+ <i class="fas fa-language text-4xl"></i>
286
+ </div>
287
+ <h3 class="text-xl font-semibold mb-2">2. Choose Your Language</h3>
288
+ <p class="text-gray-600">Select between English or Swahili for your transcript. The AI will translate naturally while preserving meaning.</p>
289
+ </div>
290
+
291
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition transform hover:-translate-y-1">
292
+ <div class="text-indigo-600 mb-4">
293
+ <i class="fas fa-lightbulb text-4xl"></i>
294
+ </div>
295
+ <h3 class="text-xl font-semibold mb-2">3. Get Smart Insights</h3>
296
+ <p class="text-gray-600">Automatically highlights decisions, tasks, questions, and deadlines with a concise 30-second summary.</p>
297
+ </div>
298
+ </div>
299
+ </div>
300
+
301
+ <footer class="bg-gray-800 text-white py-8">
302
+ <div class="container mx-auto px-4">
303
+ <div class="flex flex-col md:flex-row justify-between items-center">
304
+ <div class="mb-4 md:mb-0">
305
+ <div class="flex items-center space-x-2">
306
+ <i class="fas fa-clock text-2xl"></i>
307
+ <h2 class="text-xl font-bold">MeetMinutes AI</h2>
308
+ </div>
309
+ <p class="text-gray-400 mt-2">Powered by Gemini AI</p>
310
+ </div>
311
+ <div class="flex space-x-6">
312
+ <a href="#" class="hover:text-indigo-300 transition"><i class="fab fa-twitter"></i></a>
313
+ <a href="#" class="hover:text-indigo-300 transition"><i class="fab fa-linkedin"></i></a>
314
+ <a href="#" class="hover:text-indigo-300 transition"><i class="fab fa-github"></i></a>
315
+ </div>
316
+ </div>
317
+ <div class="mt-8 text-center text-gray-400 text-sm">
318
+ &copy; 2023 MeetMinutes AI. All rights reserved.
319
+ </div>
320
+ </div>
321
+ </footer>
322
+
323
+ <script>
324
+ // Mock data for demonstration
325
+ const mockTranscript = [
326
+ { speaker: "John", text: "Good morning team. Let's start with the Q2 results. We exceeded our targets by 15% which is great news.", time: "00:00:12" },
327
+ { speaker: "Sarah", text: "That's fantastic! Should we plan a team celebration for next Friday?", time: "00:00:32" },
328
+ { speaker: "Mark", text: "Before we decide on that, we need to address the server issues that caused downtime last week. Who's responsible for implementing the fix?", time: "00:00:48" },
329
+ { speaker: "Lisa", text: "That would be me. I'll have the patch ready by Wednesday EOD.", time: "00:01:15" },
330
+ { speaker: "John", text: "Excellent. Also, regarding the new client project, when can we expect the first prototype?", time: "00:01:32" },
331
+ { speaker: "Sarah", text: "The design team will complete it by next Monday. Do we need to present it to the client?", time: "00:01:55" },
332
+ { speaker: "Mark", text: "Yes, let's schedule a demo for next Wednesday at 2 PM. Lisa, can you handle the technical aspects?", time: "00:02:18" },
333
+ { speaker: "Lisa", text: "Sure, I'll prepare the demo environment.", time: "00:02:35" },
334
+ { speaker: "John", text: "Great. Any other questions before we wrap up?", time: "00:02:48" },
335
+ { speaker: "Sarah", text: "Just one - what's the budget for the team celebration?", time: "00:03:02" },
336
+ { speaker: "John", text: "Let's cap it at $500. Sarah, you can coordinate with finance.", time: "00:03:15" },
337
+ { speaker: "Mark", text: "Sounds good. Meeting adjourned.", time: "00:03:32" }
338
+ ];
339
+
340
+ const mockSwahiliTranscript = [
341
+ { speaker: "John", text: "Habari za asubuhi timu. Wacha tuanze na matokeo ya Q2. Tulizidi malengo yetu kwa 15% ambayo ni habari njema.", time: "00:00:12" },
342
+ { speaker: "Sarah", text: "Hiyo ni nzuri! Je, tunapaswa kupanga sherehe ya timu kwa Ijumaa ijayo?", time: "00:00:32" },
343
+ { speaker: "Mark", text: "Kabla ya kuamua juu ya hilo, tunahitaji kushughulikia matatizo ya seva ambayo yalisababisha kushuka kwa wakati wa kazi wiki iliyopita. Nani anahusika na utekelezaji wa kurekebisha?", time: "00:00:48" },
344
+ { speaker: "Lisa", text: "Hiyo itakuwa mimi. Nitakuwa na kiraka tayari kwa Jumatano mwisho wa siku.", time: "00:01:15" },
345
+ { speaker: "John", text: "Bora. Pia, kuhusu mradi mpya wa mteja, lini tunaweza kutarajia mfano wa kwanza?", time: "00:01:32" },
346
+ { speaker: "Sarah", text: "Timu ya kubuni itakamilisha kwa Jumatatu ijayo. Je, tunahitaji kuwasilisha kwa mteja?", time: "00:01:55" },
347
+ { speaker: "Mark", text: "Ndio, wacha tuweke ratiba ya onyesho kwa Jumatano ijayo saa 2 asubuhi. Lisa, unaweza kushughulikia mambo ya kiufundi?", time: "00:02:18" },
348
+ { speaker: "Lisa", text: "Hakika, nitatayarisha mazingira ya onyesho.", time: "00:02:35" },
349
+ { speaker: "John", text: "Vizuri. Maswali mengine yoyote kabla ya kumaliza?", time: "00:02:48" },
350
+ { speaker: "Sarah", text: "Moja tu - ni bajeti gani ya sherehe ya timu?", time: "00:03:02" },
351
+ { speaker: "John", text: "Wacha tuweke kikomo cha $500. Sarah, unaweza kuratibu na fedha.", time: "00:03:15" },
352
+ { speaker: "Mark", text: "Inasikika vizuri. Mkutano umekwisha.", time: "00:03:32" }
353
+ ];
354
+
355
+ const mockHighlights = [
356
+ { type: "decision", text: "Team celebration approved for next Friday with $500 budget" },
357
+ { type: "task", text: "Lisa to implement server fix by Wednesday EOD" },
358
+ { type: "task", text: "Sarah to coordinate team celebration with finance" },
359
+ { type: "question", text: "When will the new client project prototype be ready?" },
360
+ { type: "deadline", text: "Design team to complete prototype by next Monday" },
361
+ { type: "decision", text: "Client demo scheduled for next Wednesday at 2 PM" },
362
+ { type: "task", text: "Lisa to prepare demo environment for client presentation" }
363
+ ];
364
+
365
+ const mockSummary = "The team discussed Q2 results which exceeded targets by 15%. Approved a team celebration for next Friday with $500 budget. Lisa will fix server issues by Wednesday. New client prototype due Monday with demo scheduled for Wednesday at 2 PM.";
366
+
367
+ // DOM elements
368
+ const startBtn = document.getElementById('start-btn');
369
+ const stopBtn = document.getElementById('stop-btn');
370
+ const recordingStatus = document.getElementById('recording-status');
371
+ const transcriptionContainer = document.getElementById('transcription-container');
372
+ const transcriptEl = document.getElementById('transcript');
373
+ const highlightsEl = document.getElementById('highlights');
374
+ const summaryEl = document.getElementById('summary');
375
+ const englishBtn = document.getElementById('english-btn');
376
+ const swahiliBtn = document.getElementById('swahili-btn');
377
+ const copyBtn = document.getElementById('copy-btn');
378
+ const downloadBtn = document.getElementById('download-btn');
379
+ const shareBtn = document.getElementById('share-btn');
380
+ const authBtn = document.getElementById('auth-btn');
381
+ const meetingTimer = document.getElementById('meeting-timer');
382
+ const typingStatus = document.getElementById('typing-status');
383
+ const meetingContainer = document.getElementById('meeting-container');
384
+
385
+ // State variables
386
+ let currentLanguage = 'english';
387
+ let isRecording = false;
388
+ let timerInterval;
389
+ let seconds = 0;
390
+ let currentTranscriptIndex = 0;
391
+ let transcriptInterval;
392
+ let isProcessing = false;
393
+
394
+ // Event listeners
395
+ startBtn.addEventListener('click', startRecording);
396
+ stopBtn.addEventListener('click', stopRecording);
397
+ englishBtn.addEventListener('click', () => switchLanguage('english'));
398
+ swahiliBtn.addEventListener('click', () => switchLanguage('swahili'));
399
+ copyBtn.addEventListener('click', copyNotes);
400
+ downloadBtn.addEventListener('click', downloadNotes);
401
+ shareBtn.addEventListener('click', shareNotes);
402
+ authBtn.addEventListener('click', connectGoogleMeet);
403
+
404
+ // Functions
405
+ function startRecording() {
406
+ isRecording = true;
407
+ startBtn.classList.add('hidden');
408
+ stopBtn.classList.remove('hidden');
409
+ recordingStatus.classList.remove('hidden');
410
+ meetingTimer.classList.remove('hidden');
411
+
412
+ // Start timer
413
+ seconds = 0;
414
+ updateTimer();
415
+ timerInterval = setInterval(updateTimer, 1000);
416
+
417
+ // Start simulating real-time transcription
418
+ currentTranscriptIndex = 0;
419
+ transcriptEl.innerHTML = '';
420
+ transcriptInterval = setInterval(addTranscriptLine, 2000);
421
+
422
+ // Add glow effect to meeting container
423
+ meetingContainer.classList.add('glow-effect');
424
+
425
+ // Enable language buttons
426
+ englishBtn.disabled = false;
427
+ swahiliBtn.disabled = false;
428
+ }
429
+
430
+ function stopRecording() {
431
+ isRecording = false;
432
+ startBtn.classList.remove('hidden');
433
+ stopBtn.classList.add('hidden');
434
+ recordingStatus.classList.add('hidden');
435
+ clearInterval(timerInterval);
436
+ clearInterval(transcriptInterval);
437
+
438
+ // Show transcription UI
439
+ transcriptionContainer.classList.remove('hidden');
440
+ transcriptionContainer.classList.add('fade-in');
441
+
442
+ // Remove glow effect
443
+ meetingContainer.classList.remove('glow-effect');
444
+
445
+ // Process highlights and summary
446
+ processHighlightsAndSummary();
447
+ }
448
+
449
+ function updateTimer() {
450
+ seconds++;
451
+ const hours = Math.floor(seconds / 3600);
452
+ const minutes = Math.floor((seconds % 3600) / 60);
453
+ const secs = seconds % 60;
454
+
455
+ meetingTimer.innerHTML = `
456
+ <i class="fas fa-clock mr-1"></i>
457
+ <span>${String(hours).padStart(2, '0')}:${String(minutes).padStart(2, '0')}:${String(secs).padStart(2, '0')}</span>
458
+ `;
459
+ }
460
+
461
+ function addTranscriptLine() {
462
+ if (currentTranscriptIndex >= mockTranscript.length) {
463
+ clearInterval(transcriptInterval);
464
+ return;
465
+ }
466
+
467
+ const transcript = currentLanguage === 'english' ? mockTranscript : mockSwahiliTranscript;
468
+ const line = transcript[currentTranscriptIndex];
469
+
470
+ const speakerDiv = document.createElement('div');
471
+ speakerDiv.className = `speaker-bubble ${line.speaker === 'You' ? 'speaker-you' : 'speaker-other'}`;
472
+
473
+ speakerDiv.innerHTML = `
474
+ <div class="speaker-name">${line.speaker} <span class="text-xs opacity-70">${line.time}</span></div>
475
+ <div>${line.text}</div>
476
+ ${currentTranscriptIndex === mockTranscript.length - 1 ? '<div class="real-time-indicator"></div>' : ''}
477
+ `;
478
+
479
+ transcriptEl.appendChild(speakerDiv);
480
+ transcriptEl.scrollTop = transcriptEl.scrollHeight;
481
+ currentTranscriptIndex++;
482
+ }
483
+
484
+ function switchLanguage(language) {
485
+ if (isProcessing || currentLanguage === language) return;
486
+
487
+ isProcessing = true;
488
+ currentLanguage = language;
489
+
490
+ // Update active button state
491
+ if (language === 'english') {
492
+ englishBtn.classList.add('active');
493
+ swahiliBtn.classList.remove('active');
494
+ } else {
495
+ englishBtn.classList.remove('active');
496
+ swahiliBtn.classList.add('active');
497
+ }
498
+
499
+ // Show processing state
500
+ const originalTranscript = transcriptEl.innerHTML;
501
+ transcriptEl.innerHTML = `
502
+ <div class="flex justify-center items-center h-full py-8">
503
+ <div class="text-center">
504
+ <i class="fas fa-language text-4xl text-indigo-500 mb-3"></i>
505
+ <p class="text-gray-600">Translating to ${language === 'english' ? 'English' : 'Swahili'}...</p>
506
+ </div>
507
+ </div>
508
+ `;
509
+
510
+ // Simulate translation delay
511
+ setTimeout(() => {
512
+ transcriptEl.innerHTML = '';
513
+ currentTranscriptIndex = 0;
514
+
515
+ // Rebuild transcript in new language
516
+ const newTranscriptInterval = setInterval(() => {
517
+ if (currentTranscriptIndex >= mockTranscript.length) {
518
+ clearInterval(newTranscriptInterval);
519
+ isProcessing = false;
520
+ return;
521
+ }
522
+
523
+ const transcript = language === 'english' ? mockTranscript : mockSwahiliTranscript;
524
+ const line = transcript[currentTranscriptIndex];
525
+
526
+ const speakerDiv = document.createElement('div');
527
+ speakerDiv.className = `speaker-bubble ${line.speaker === 'You' ? 'speaker-you' : 'speaker-other'}`;
528
+
529
+ speakerDiv.innerHTML = `
530
+ <div class="speaker-name">${line.speaker} <span class="text-xs opacity-70">${line.time}</span></div>
531
+ <div>${line.text}</div>
532
+ ${currentTranscriptIndex === mockTranscript.length - 1 ? '<div class="real-time-indicator"></div>' : ''}
533
+ `;
534
+
535
+ transcriptEl.appendChild(speakerDiv);
536
+ transcriptEl.scrollTop = transcriptEl.scrollHeight;
537
+ currentTranscriptIndex++;
538
+ }, 100);
539
+ }, 1500);
540
+ }
541
+
542
+ function processHighlightsAndSummary() {
543
+ typingStatus.classList.remove('hidden');
544
+
545
+ // Simulate AI processing delay
546
+ setTimeout(() => {
547
+ typingStatus.classList.add('hidden');
548
+
549
+ // Display highlights
550
+ displayHighlights();
551
+
552
+ // Display summary with typewriter effect
553
+ displaySummary();
554
+ }, 3000);
555
+ }
556
+
557
+ function displayHighlights() {
558
+ highlightsEl.innerHTML = '';
559
+
560
+ mockHighlights.forEach(item => {
561
+ const highlightDiv = document.createElement('div');
562
+ highlightDiv.className = 'p-3 rounded-lg fade-in';
563
+
564
+ // Add appropriate class based on highlight type
565
+ if (item.type === 'decision') {
566
+ highlightDiv.classList.add('highlight-decision');
567
+ } else if (item.type === 'task') {
568
+ highlightDiv.classList.add('highlight-task');
569
+ } else if (item.type === 'question') {
570
+ highlightDiv.classList.add('highlight-question');
571
+ } else if (item.type === 'deadline') {
572
+ highlightDiv.classList.add('highlight-deadline');
573
+ }
574
+
575
+ highlightDiv.innerHTML = `
576
+ <div class="flex items-start">
577
+ <i class="fas ${
578
+ item.type === 'decision' ? 'fa-check-circle text-green-500' :
579
+ item.type === 'task' ? 'fa-tasks text-blue-500' :
580
+ item.type === 'question' ? 'fa-question-circle text-yellow-500' :
581
+ 'fa-calendar-day text-pink-500'
582
+ } mr-2 mt-1"></i>
583
+ <span>${item.text}</span>
584
+ </div>
585
+ `;
586
+
587
+ highlightsEl.appendChild(highlightDiv);
588
+ });
589
+ }
590
+
591
+ function displaySummary() {
592
+ summaryEl.innerHTML = '';
593
+ const summaryDiv = document.createElement('div');
594
+ summaryDiv.className = 'typewriter';
595
+ summaryDiv.textContent = mockSummary;
596
+ summaryEl.appendChild(summaryDiv);
597
+
598
+ // Remove typewriter effect after animation completes
599
+ setTimeout(() => {
600
+ summaryDiv.classList.remove('typewriter');
601
+ summaryDiv.style.borderRight = 'none';
602
+ }, 3500);
603
+ }
604
+
605
+ function copyNotes() {
606
+ const transcriptText = Array.from(transcriptEl.querySelectorAll('div > div:nth-child(2)'))
607
+ .map(el => el.textContent)
608
+ .join('\n\n');
609
+
610
+ const highlightsText = Array.from(highlightsEl.querySelectorAll('div > span'))
611
+ .map(el => `• ${el.textContent}`)
612
+ .join('\n');
613
+
614
+ const fullText = `MEETING NOTES\n\nTRANSCRIPT:\n${transcriptText}\n\nHIGHLIGHTS:\n${highlightsText}\n\nSUMMARY:\n${mockSummary}`;
615
+
616
+ navigator.clipboard.writeText(fullText).then(() => {
617
+ const originalText = copyBtn.querySelector('span').textContent;
618
+ copyBtn.querySelector('span').textContent = 'Copied!';
619
+ copyBtn.classList.add('bg-green-100', 'text-green-700');
620
+ copyBtn.classList.remove('bg-gray-200', 'text-gray-700');
621
+
622
+ setTimeout(() => {
623
+ copyBtn.querySelector('span').textContent = originalText;
624
+ copyBtn.classList.remove('bg-green-100', 'text-green-700');
625
+ copyBtn.classList.add('bg-gray-200', 'text-gray-700');
626
+ }, 2000);
627
+ });
628
+ }
629
+
630
+ function downloadNotes() {
631
+ const transcriptText = Array.from(transcriptEl.querySelectorAll('div > div:nth-child(2)'))
632
+ .map(el => el.textContent)
633
+ .join('\n\n');
634
+
635
+ const highlightsText = Array.from(highlightsEl.querySelectorAll('div > span'))
636
+ .map(el => `• ${el.textContent}`)
637
+ .join('\n');
638
+
639
+ const fullText = `MEETING NOTES\n\nTRANSCRIPT:\n${transcriptText}\n\nHIGHLIGHTS:\n${highlightsText}\n\nSUMMARY:\n${mockSummary}`;
640
+
641
+ const blob = new Blob([fullText], { type: 'text/plain' });
642
+ const url = URL.createObjectURL(blob);
643
+ const a = document.createElement('a');
644
+ a.href = url;
645
+ a.download = `meeting_notes_${new Date().toISOString().slice(0, 10)}.txt`;
646
+ document.body.appendChild(a);
647
+ a.click();
648
+ document.body.removeChild(a);
649
+ URL.revokeObjectURL(url);
650
+
651
+ // Show download confirmation
652
+ const originalText = downloadBtn.querySelector('span').textContent;
653
+ downloadBtn.querySelector('span').textContent = 'Downloaded!';
654
+ downloadBtn.classList.add('bg-green-100', 'text-green-700');
655
+ downloadBtn.classList.remove('bg-indigo-600', 'text-white');
656
+
657
+ setTimeout(() => {
658
+ downloadBtn.querySelector('span').textContent = originalText;
659
+ downloadBtn.classList.remove('bg-green-100', 'text-green-700');
660
+ downloadBtn.classList.add('bg-indigo-600', 'text-white');
661
+ }, 2000);
662
+ }
663
+
664
+ function shareNotes() {
665
+ if (navigator.share) {
666
+ const transcriptText = Array.from(transcriptEl.querySelectorAll('div > div:nth-child(2)'))
667
+ .map(el => el.textContent)
668
+ .join('\n\n');
669
+
670
+ const highlightsText = Array.from(highlightsEl.querySelectorAll('div > span'))
671
+ .map(el => `• ${el.textContent}`)
672
+ .join('\n');
673
+
674
+ const fullText = `MEETING NOTES\n\nTRANSCRIPT:\n${transcriptText}\n\nHIGHLIGHTS:\n${highlightsText}\n\nSUMMARY:\n${mockSummary}`;
675
+
676
+ navigator.share({
677
+ title: 'Meeting Notes',
678
+ text: fullText,
679
+ url: window.location.href
680
+ }).then(() => {
681
+ console.log('Shared successfully');
682
+ }).catch(err => {
683
+ console.error('Error sharing:', err);
684
+ });
685
+ } else {
686
+ // Fallback for browsers that don't support Web Share API
687
+ copyNotes();
688
+ alert('Notes copied to clipboard. You can now paste them to share.');
689
+ }
690
+ }
691
+
692
+ function connectGoogleMeet() {
693
+ // Simulate Google authentication
694
+ authBtn.disabled = true;
695
+ authBtn.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Connecting...';
696
+
697
+ setTimeout(() => {
698
+ authBtn.innerHTML = '<i class="fas fa-check-circle mr-2"></i> Connected';
699
+ authBtn.classList.remove('bg-white', 'text-indigo-600');
700
+ authBtn.classList.add('bg-green-100', 'text-green-700');
701
+
702
+ // Enable start button
703
+ startBtn.disabled = false;
704
+ }, 2000);
705
+ }
706
+
707
+ // Initialize
708
+ startBtn.disabled = true;
709
+ </script>
710
+ <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=THEMONEYHOLLIC/tumaminutes-ai" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
711
+ </html>
prompts.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ on "Current meeting"add real time transcript depend on the language , make sure the ui is addictive and attractive
2
+ implement the functionalities in all features, make sure nothing is broken