Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +399 -19
- prompts.txt +0 -0
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: minutes-ai
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: pink
|
| 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,399 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ta 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 |
+
<script src="https://unpkg.com/typewriter-effect@latest/dist/core.js"></script>
|
| 10 |
+
<style>
|
| 11 |
+
.gradient-bg {
|
| 12 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 13 |
+
}
|
| 14 |
+
.pulse-animation {
|
| 15 |
+
animation: pulse 2s infinite;
|
| 16 |
+
}
|
| 17 |
+
@keyframes pulse {
|
| 18 |
+
0% { transform: scale(1); }
|
| 19 |
+
50% { transform: scale(1.05); }
|
| 20 |
+
100% { transform: scale(1); }
|
| 21 |
+
}
|
| 22 |
+
.fade-in {
|
| 23 |
+
animation: fadeIn 0.5s ease-in;
|
| 24 |
+
}
|
| 25 |
+
@keyframes fadeIn {
|
| 26 |
+
from { opacity: 0; }
|
| 27 |
+
to { opacity: 1; }
|
| 28 |
+
}
|
| 29 |
+
.transcript-container {
|
| 30 |
+
max-height: 300px;
|
| 31 |
+
overflow-y: auto;
|
| 32 |
+
scrollbar-width: thin;
|
| 33 |
+
}
|
| 34 |
+
.transcript-container::-webkit-scrollbar {
|
| 35 |
+
width: 6px;
|
| 36 |
+
}
|
| 37 |
+
.transcript-container::-webkit-scrollbar-thumb {
|
| 38 |
+
background-color: rgba(156, 163, 175, 0.5);
|
| 39 |
+
border-radius: 3px;
|
| 40 |
+
}
|
| 41 |
+
.highlight-decision {
|
| 42 |
+
background-color: rgba(167, 243, 208, 0.5);
|
| 43 |
+
border-left: 3px solid #10b981;
|
| 44 |
+
}
|
| 45 |
+
.highlight-task {
|
| 46 |
+
background-color: rgba(191, 219, 254, 0.5);
|
| 47 |
+
border-left: 3px solid #3b82f6;
|
| 48 |
+
}
|
| 49 |
+
.highlight-question {
|
| 50 |
+
background-color: rgba(253, 230, 138, 0.5);
|
| 51 |
+
border-left: 3px solid #f59e0b;
|
| 52 |
+
}
|
| 53 |
+
.highlight-deadline {
|
| 54 |
+
background-color: rgba(252, 231, 243, 0.5);
|
| 55 |
+
border-left: 3px solid #ec4899;
|
| 56 |
+
}
|
| 57 |
+
</style>
|
| 58 |
+
</head>
|
| 59 |
+
<body class="bg-gray-50 min-h-screen">
|
| 60 |
+
<div class="gradient-bg text-white">
|
| 61 |
+
<div class="container mx-auto px-4 py-8">
|
| 62 |
+
<div class="flex justify-between items-center">
|
| 63 |
+
<div class="flex items-center space-x-2">
|
| 64 |
+
<i class="fas fa-clock text-2xl"></i>
|
| 65 |
+
<h1 class="text-2xl font-bold">MeetMinutes AI</h1>
|
| 66 |
+
</div>
|
| 67 |
+
<button id="auth-btn" class="bg-white text-indigo-600 px-4 py-2 rounded-lg font-medium hover:bg-gray-100 transition">
|
| 68 |
+
Connect Google Meet
|
| 69 |
+
</button>
|
| 70 |
+
</div>
|
| 71 |
+
|
| 72 |
+
<div class="mt-12 text-center">
|
| 73 |
+
<h2 class="text-4xl font-bold mb-4">Never Miss Important Meeting Details Again</h2>
|
| 74 |
+
<p class="text-xl max-w-2xl mx-auto">AI-powered transcription, translation, and smart summarization for your Google Meet calls</p>
|
| 75 |
+
</div>
|
| 76 |
+
|
| 77 |
+
<div class="mt-8 max-w-4xl mx-auto bg-white rounded-xl shadow-lg overflow-hidden">
|
| 78 |
+
<div class="p-6">
|
| 79 |
+
<div class="flex justify-between items-center mb-6">
|
| 80 |
+
<h3 class="text-xl font-semibold text-gray-800">Current Meeting</h3>
|
| 81 |
+
<div class="flex space-x-2">
|
| 82 |
+
<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">
|
| 83 |
+
<i class="fas fa-microphone"></i>
|
| 84 |
+
<span>Start Recording</span>
|
| 85 |
+
</button>
|
| 86 |
+
<button id="stop-btn" class="bg-red-500 text-white px-4 py-2 rounded-lg hover:bg-red-600 transition hidden">
|
| 87 |
+
<i class="fas fa-stop"></i>
|
| 88 |
+
<span>Stop</span>
|
| 89 |
+
</button>
|
| 90 |
+
</div>
|
| 91 |
+
</div>
|
| 92 |
+
|
| 93 |
+
<div id="recording-status" class="hidden mb-6 bg-blue-50 text-blue-800 p-4 rounded-lg flex items-center">
|
| 94 |
+
<div class="pulse-animation mr-3">
|
| 95 |
+
<i class="fas fa-circle text-red-500"></i>
|
| 96 |
+
</div>
|
| 97 |
+
<span>Recording meeting in progress...</span>
|
| 98 |
+
</div>
|
| 99 |
+
|
| 100 |
+
<div id="transcription-container" class="hidden">
|
| 101 |
+
<div class="mb-6">
|
| 102 |
+
<label class="block text-gray-700 mb-2">Select Output Language:</label>
|
| 103 |
+
<div class="flex space-x-4">
|
| 104 |
+
<button id="english-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">
|
| 105 |
+
<i class="fas fa-language"></i>
|
| 106 |
+
<span>English</span>
|
| 107 |
+
</button>
|
| 108 |
+
<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">
|
| 109 |
+
<i class="fas fa-language"></i>
|
| 110 |
+
<span>Swahili</span>
|
| 111 |
+
</button>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
|
| 115 |
+
<div class="mb-6">
|
| 116 |
+
<label class="block text-gray-700 mb-2">Meeting Transcript:</label>
|
| 117 |
+
<div id="transcript" class="transcript-container bg-gray-50 p-4 rounded-lg text-gray-700">
|
| 118 |
+
<!-- Transcript will appear here -->
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
|
| 122 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 123 |
+
<div>
|
| 124 |
+
<h4 class="text-lg font-semibold text-gray-800 mb-3">Key Highlights</h4>
|
| 125 |
+
<div id="highlights" class="space-y-3">
|
| 126 |
+
<!-- Highlights will appear here -->
|
| 127 |
+
</div>
|
| 128 |
+
</div>
|
| 129 |
+
|
| 130 |
+
<div>
|
| 131 |
+
<h4 class="text-lg font-semibold text-gray-800 mb-3">Meeting Summary</h4>
|
| 132 |
+
<div id="summary" class="bg-indigo-50 p-4 rounded-lg text-gray-700">
|
| 133 |
+
<!-- Summary will appear here -->
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
</div>
|
| 137 |
+
|
| 138 |
+
<div class="mt-6 flex justify-end space-x-3">
|
| 139 |
+
<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">
|
| 140 |
+
<i class="fas fa-copy"></i>
|
| 141 |
+
<span>Copy Notes</span>
|
| 142 |
+
</button>
|
| 143 |
+
<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">
|
| 144 |
+
<i class="fas fa-download"></i>
|
| 145 |
+
<span>Download</span>
|
| 146 |
+
</button>
|
| 147 |
+
</div>
|
| 148 |
+
</div>
|
| 149 |
+
</div>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
</div>
|
| 153 |
+
|
| 154 |
+
<div class="container mx-auto px-4 py-12">
|
| 155 |
+
<h2 class="text-3xl font-bold text-center text-gray-800 mb-8">How It Works</h2>
|
| 156 |
+
|
| 157 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
| 158 |
+
<div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition">
|
| 159 |
+
<div class="text-indigo-600 mb-4">
|
| 160 |
+
<i class="fas fa-microphone text-4xl"></i>
|
| 161 |
+
</div>
|
| 162 |
+
<h3 class="text-xl font-semibold mb-2">1. Record Your Meeting</h3>
|
| 163 |
+
<p class="text-gray-600">Simply click "Start Recording" when your Google Meet begins. Our AI will automatically capture all audio.</p>
|
| 164 |
+
</div>
|
| 165 |
+
|
| 166 |
+
<div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition">
|
| 167 |
+
<div class="text-indigo-600 mb-4">
|
| 168 |
+
<i class="fas fa-language text-4xl"></i>
|
| 169 |
+
</div>
|
| 170 |
+
<h3 class="text-xl font-semibold mb-2">2. Choose Your Language</h3>
|
| 171 |
+
<p class="text-gray-600">Select between English or Swahili for your transcript. The AI will translate naturally while preserving meaning.</p>
|
| 172 |
+
</div>
|
| 173 |
+
|
| 174 |
+
<div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition">
|
| 175 |
+
<div class="text-indigo-600 mb-4">
|
| 176 |
+
<i class="fas fa-lightbulb text-4xl"></i>
|
| 177 |
+
</div>
|
| 178 |
+
<h3 class="text-xl font-semibold mb-2">3. Get Smart Insights</h3>
|
| 179 |
+
<p class="text-gray-600">Automatically highlights decisions, tasks, questions, and deadlines with a concise 30-second summary.</p>
|
| 180 |
+
</div>
|
| 181 |
+
</div>
|
| 182 |
+
</div>
|
| 183 |
+
|
| 184 |
+
<footer class="bg-gray-800 text-white py-8">
|
| 185 |
+
<div class="container mx-auto px-4">
|
| 186 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
| 187 |
+
<div class="mb-4 md:mb-0">
|
| 188 |
+
<div class="flex items-center space-x-2">
|
| 189 |
+
<i class="fas fa-clock text-2xl"></i>
|
| 190 |
+
<h2 class="text-xl font-bold">MeetMinutes AI</h2>
|
| 191 |
+
</div>
|
| 192 |
+
<p class="text-gray-400 mt-2">Powered by Gemini AI</p>
|
| 193 |
+
</div>
|
| 194 |
+
<div class="flex space-x-6">
|
| 195 |
+
<a href="#" class="hover:text-indigo-300 transition"><i class="fab fa-twitter"></i></a>
|
| 196 |
+
<a href="#" class="hover:text-indigo-300 transition"><i class="fab fa-linkedin"></i></a>
|
| 197 |
+
<a href="#" class="hover:text-indigo-300 transition"><i class="fab fa-github"></i></a>
|
| 198 |
+
</div>
|
| 199 |
+
</div>
|
| 200 |
+
<div class="mt-8 text-center text-gray-400 text-sm">
|
| 201 |
+
© 2023 MeetMinutes AI. All rights reserved.
|
| 202 |
+
</div>
|
| 203 |
+
</div>
|
| 204 |
+
</footer>
|
| 205 |
+
|
| 206 |
+
<script>
|
| 207 |
+
// Mock data for demonstration
|
| 208 |
+
const mockTranscript = `**Meeting Transcript**\n\nJohn: Good morning team. Let's start with the Q2 results. We exceeded our targets by 15% which is great news.\n\nSarah: That's fantastic! Should we plan a team celebration for next Friday?\n\nMark: Before we decide on that, we need to address the server issues that caused downtime last week. Who's responsible for implementing the fix?\n\nLisa: That would be me. I'll have the patch ready by Wednesday EOD.\n\nJohn: Excellent. Also, regarding the new client project, when can we expect the first prototype?\n\nSarah: The design team will complete it by next Monday. Do we need to present it to the client?\n\nMark: Yes, let's schedule a demo for next Wednesday at 2 PM. Lisa, can you handle the technical aspects?\n\nLisa: Sure, I'll prepare the demo environment.\n\nJohn: Great. Any other questions before we wrap up?\n\nSarah: Just one - what's the budget for the team celebration?\n\nJohn: Let's cap it at $500. Sarah, you can coordinate with finance.\n\nMark: Sounds good. Meeting adjourned.`;
|
| 209 |
+
|
| 210 |
+
const mockHighlights = [
|
| 211 |
+
{ type: "decision", text: "Team celebration approved for next Friday with $500 budget" },
|
| 212 |
+
{ type: "task", text: "Lisa to implement server fix by Wednesday EOD" },
|
| 213 |
+
{ type: "task", text: "Sarah to coordinate team celebration with finance" },
|
| 214 |
+
{ type: "question", text: "When will the new client project prototype be ready?" },
|
| 215 |
+
{ type: "deadline", text: "Design team to complete prototype by next Monday" },
|
| 216 |
+
{ type: "decision", text: "Client demo scheduled for next Wednesday at 2 PM" },
|
| 217 |
+
{ type: "task", text: "Lisa to prepare demo environment for client presentation" }
|
| 218 |
+
];
|
| 219 |
+
|
| 220 |
+
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.";
|
| 221 |
+
|
| 222 |
+
// DOM elements
|
| 223 |
+
const startBtn = document.getElementById('start-btn');
|
| 224 |
+
const stopBtn = document.getElementById('stop-btn');
|
| 225 |
+
const recordingStatus = document.getElementById('recording-status');
|
| 226 |
+
const transcriptionContainer = document.getElementById('transcription-container');
|
| 227 |
+
const transcriptEl = document.getElementById('transcript');
|
| 228 |
+
const highlightsEl = document.getElementById('highlights');
|
| 229 |
+
const summaryEl = document.getElementById('summary');
|
| 230 |
+
const englishBtn = document.getElementById('english-btn');
|
| 231 |
+
const swahiliBtn = document.getElementById('swahili-btn');
|
| 232 |
+
const copyBtn = document.getElementById('copy-btn');
|
| 233 |
+
const downloadBtn = document.getElementById('download-btn');
|
| 234 |
+
const authBtn = document.getElementById('auth-btn');
|
| 235 |
+
|
| 236 |
+
// Event listeners
|
| 237 |
+
startBtn.addEventListener('click', startRecording);
|
| 238 |
+
stopBtn.addEventListener('click', stopRecording);
|
| 239 |
+
englishBtn.addEventListener('click', () => processTranscript('english'));
|
| 240 |
+
swahiliBtn.addEventListener('click', () => processTranscript('swahili'));
|
| 241 |
+
copyBtn.addEventListener('click', copyNotes);
|
| 242 |
+
downloadBtn.addEventListener('click', downloadNotes);
|
| 243 |
+
authBtn.addEventListener('click', connectGoogleMeet);
|
| 244 |
+
|
| 245 |
+
// Functions
|
| 246 |
+
function startRecording() {
|
| 247 |
+
startBtn.classList.add('hidden');
|
| 248 |
+
stopBtn.classList.remove('hidden');
|
| 249 |
+
recordingStatus.classList.remove('hidden');
|
| 250 |
+
|
| 251 |
+
// Simulate recording process
|
| 252 |
+
setTimeout(() => {
|
| 253 |
+
stopRecording();
|
| 254 |
+
}, 5000);
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
function stopRecording() {
|
| 258 |
+
startBtn.classList.remove('hidden');
|
| 259 |
+
stopBtn.classList.add('hidden');
|
| 260 |
+
recordingStatus.classList.add('hidden');
|
| 261 |
+
|
| 262 |
+
// Show transcription UI
|
| 263 |
+
transcriptionContainer.classList.remove('hidden');
|
| 264 |
+
transcriptionContainer.classList.add('fade-in');
|
| 265 |
+
|
| 266 |
+
// Display mock transcript
|
| 267 |
+
transcriptEl.textContent = mockTranscript;
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
function processTranscript(language) {
|
| 271 |
+
// Show loading state
|
| 272 |
+
transcriptEl.innerHTML = '<div class="flex justify-center"><i class="fas fa-spinner fa-spin text-2xl text-indigo-600"></i></div>';
|
| 273 |
+
|
| 274 |
+
// Simulate AI processing
|
| 275 |
+
setTimeout(() => {
|
| 276 |
+
if (language === 'swahili') {
|
| 277 |
+
// Mock Swahili translation
|
| 278 |
+
transcriptEl.innerHTML = `
|
| 279 |
+
<p><strong>Mkutano wa Nakala</strong></p>
|
| 280 |
+
<p>John: Habari za asubuhi timu. Wacha tuanze na matokeo ya Q2. Tulizidi malengo yetu kwa 15% ambayo ni habari njema.</p>
|
| 281 |
+
<p>Sarah: Hiyo ni nzuri! Je, tunapaswa kupanga sherehe ya timu kwa Ijumaa ijayo?</p>
|
| 282 |
+
<p>Mark: 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?</p>
|
| 283 |
+
<p>Lisa: Hiyo itakuwa mimi. Nitakuwa na kiraka tayari kwa Jumatano mwisho wa siku.</p>
|
| 284 |
+
`;
|
| 285 |
+
} else {
|
| 286 |
+
transcriptEl.textContent = mockTranscript;
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
// Display highlights
|
| 290 |
+
displayHighlights();
|
| 291 |
+
|
| 292 |
+
// Display summary
|
| 293 |
+
displaySummary();
|
| 294 |
+
}, 2000);
|
| 295 |
+
}
|
| 296 |
+
|
| 297 |
+
function displayHighlights() {
|
| 298 |
+
highlightsEl.innerHTML = '';
|
| 299 |
+
|
| 300 |
+
mockHighlights.forEach(item => {
|
| 301 |
+
const highlightDiv = document.createElement('div');
|
| 302 |
+
highlightDiv.classList.add('p-3', 'rounded-lg', 'fade-in');
|
| 303 |
+
|
| 304 |
+
// Add appropriate class based on highlight type
|
| 305 |
+
if (item.type === 'decision') {
|
| 306 |
+
highlightDiv.classList.add('highlight-decision');
|
| 307 |
+
} else if (item.type === 'task') {
|
| 308 |
+
highlightDiv.classList.add('highlight-task');
|
| 309 |
+
} else if (item.type === 'question') {
|
| 310 |
+
highlightDiv.classList.add('highlight-question');
|
| 311 |
+
} else if (item.type === 'deadline') {
|
| 312 |
+
highlightDiv.classList.add('highlight-deadline');
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
// Add icon based on type
|
| 316 |
+
let icon = '';
|
| 317 |
+
if (item.type === 'decision') {
|
| 318 |
+
icon = '<i class="fas fa-check-circle mr-2"></i>';
|
| 319 |
+
} else if (item.type === 'task') {
|
| 320 |
+
icon = '<i class="fas fa-tasks mr-2"></i>';
|
| 321 |
+
} else if (item.type === 'question') {
|
| 322 |
+
icon = '<i class="fas fa-question-circle mr-2"></i>';
|
| 323 |
+
} else if (item.type === 'deadline') {
|
| 324 |
+
icon = '<i class="fas fa-calendar-day mr-2"></i>';
|
| 325 |
+
}
|
| 326 |
+
|
| 327 |
+
highlightDiv.innerHTML = `${icon}${item.text}`;
|
| 328 |
+
highlightsEl.appendChild(highlightDiv);
|
| 329 |
+
});
|
| 330 |
+
}
|
| 331 |
+
|
| 332 |
+
function displaySummary() {
|
| 333 |
+
// Clear previous content
|
| 334 |
+
summaryEl.innerHTML = '';
|
| 335 |
+
|
| 336 |
+
// Create typewriter effect for summary
|
| 337 |
+
const typewriter = new Typewriter(summaryEl, {
|
| 338 |
+
loop: false,
|
| 339 |
+
delay: 20,
|
| 340 |
+
});
|
| 341 |
+
|
| 342 |
+
typewriter
|
| 343 |
+
.typeString(mockSummary)
|
| 344 |
+
.start();
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
function copyNotes() {
|
| 348 |
+
const notes = `Meeting Transcript:\n${transcriptEl.textContent}\n\nKey Highlights:\n${mockHighlights.map(h => h.text).join('\n')}\n\nSummary:\n${mockSummary}`;
|
| 349 |
+
|
| 350 |
+
navigator.clipboard.writeText(notes).then(() => {
|
| 351 |
+
// Show success feedback
|
| 352 |
+
const originalText = copyBtn.querySelector('span').textContent;
|
| 353 |
+
copyBtn.querySelector('span').textContent = 'Copied!';
|
| 354 |
+
|
| 355 |
+
setTimeout(() => {
|
| 356 |
+
copyBtn.querySelector('span').textContent = originalText;
|
| 357 |
+
}, 2000);
|
| 358 |
+
});
|
| 359 |
+
}
|
| 360 |
+
|
| 361 |
+
function downloadNotes() {
|
| 362 |
+
const notes = `Meeting Transcript:\n${transcriptEl.textContent}\n\nKey Highlights:\n${mockHighlights.map(h => h.text).join('\n')}\n\nSummary:\n${mockSummary}`;
|
| 363 |
+
|
| 364 |
+
const blob = new Blob([notes], { type: 'text/plain' });
|
| 365 |
+
const url = URL.createObjectURL(blob);
|
| 366 |
+
|
| 367 |
+
const a = document.createElement('a');
|
| 368 |
+
a.href = url;
|
| 369 |
+
a.download = 'meeting-notes.txt';
|
| 370 |
+
document.body.appendChild(a);
|
| 371 |
+
a.click();
|
| 372 |
+
document.body.removeChild(a);
|
| 373 |
+
URL.revokeObjectURL(url);
|
| 374 |
+
|
| 375 |
+
// Show success feedback
|
| 376 |
+
const originalText = downloadBtn.querySelector('span').textContent;
|
| 377 |
+
downloadBtn.querySelector('span').textContent = 'Downloaded!';
|
| 378 |
+
|
| 379 |
+
setTimeout(() => {
|
| 380 |
+
downloadBtn.querySelector('span').textContent = originalText;
|
| 381 |
+
}, 2000);
|
| 382 |
+
}
|
| 383 |
+
|
| 384 |
+
function connectGoogleMeet() {
|
| 385 |
+
// Simulate Google authentication
|
| 386 |
+
authBtn.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Connecting...';
|
| 387 |
+
|
| 388 |
+
setTimeout(() => {
|
| 389 |
+
authBtn.innerHTML = '<i class="fas fa-check-circle mr-2"></i> Connected';
|
| 390 |
+
authBtn.classList.remove('bg-white', 'text-indigo-600', 'hover:bg-gray-100');
|
| 391 |
+
authBtn.classList.add('bg-green-100', 'text-green-700', 'hover:bg-green-200');
|
| 392 |
+
|
| 393 |
+
// Enable recording button
|
| 394 |
+
startBtn.disabled = false;
|
| 395 |
+
}, 2000);
|
| 396 |
+
}
|
| 397 |
+
</script>
|
| 398 |
+
<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/minutes-ai" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 399 |
+
</html>
|
prompts.txt
ADDED
|
File without changes
|