Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +427 -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: tts
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: red
|
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,427 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>AudioScribe - AI Audio Transcription</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 |
+
.dropzone {
|
11 |
+
border: 2px dashed #9CA3AF;
|
12 |
+
transition: all 0.3s ease;
|
13 |
+
}
|
14 |
+
.dropzone.active {
|
15 |
+
border-color: #3B82F6;
|
16 |
+
background-color: rgba(59, 130, 246, 0.05);
|
17 |
+
}
|
18 |
+
.waveform {
|
19 |
+
background: linear-gradient(to right, #3B82F6, #8B5CF6);
|
20 |
+
height: 100px;
|
21 |
+
border-radius: 8px;
|
22 |
+
}
|
23 |
+
.speaker-1 {
|
24 |
+
border-left: 4px solid #3B82F6;
|
25 |
+
}
|
26 |
+
.speaker-2 {
|
27 |
+
border-left: 4px solid #10B981;
|
28 |
+
}
|
29 |
+
.speaker-3 {
|
30 |
+
border-left: 4px solid #F59E0B;
|
31 |
+
}
|
32 |
+
.tag-emphasis {
|
33 |
+
font-weight: bold;
|
34 |
+
color: #3B82F6;
|
35 |
+
}
|
36 |
+
.tag-pause {
|
37 |
+
color: #6B7280;
|
38 |
+
font-style: italic;
|
39 |
+
}
|
40 |
+
.tag-emotion {
|
41 |
+
background-color: #FEE2E2;
|
42 |
+
color: #B91C1C;
|
43 |
+
border-radius: 4px;
|
44 |
+
padding: 0 4px;
|
45 |
+
}
|
46 |
+
.tag-laugh {
|
47 |
+
color: #10B981;
|
48 |
+
}
|
49 |
+
.sidebar {
|
50 |
+
transition: all 0.3s ease;
|
51 |
+
}
|
52 |
+
@keyframes pulse {
|
53 |
+
0%, 100% {
|
54 |
+
opacity: 1;
|
55 |
+
}
|
56 |
+
50% {
|
57 |
+
opacity: 0.5;
|
58 |
+
}
|
59 |
+
}
|
60 |
+
.animate-pulse {
|
61 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
62 |
+
}
|
63 |
+
</style>
|
64 |
+
</head>
|
65 |
+
<body class="bg-gray-50 text-gray-900 font-sans">
|
66 |
+
<div class="flex h-screen overflow-hidden">
|
67 |
+
<!-- Sidebar -->
|
68 |
+
<div class="sidebar bg-white w-64 border-r border-gray-200 flex flex-col">
|
69 |
+
<div class="p-4 border-b border-gray-200">
|
70 |
+
<h1 class="text-xl font-bold text-indigo-600 flex items-center">
|
71 |
+
<i class="fas fa-microphone-alt mr-2"></i> AudioScribe
|
72 |
+
</h1>
|
73 |
+
</div>
|
74 |
+
<div class="p-4">
|
75 |
+
<button id="newProjectBtn" class="w-full bg-indigo-600 hover:bg-indigo-700 text-white py-2 px-4 rounded-md flex items-center justify-center mb-4">
|
76 |
+
<i class="fas fa-plus mr-2"></i> New Project
|
77 |
+
</button>
|
78 |
+
<div class="mb-6">
|
79 |
+
<h3 class="text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2">Projects</h3>
|
80 |
+
<ul class="space-y-1">
|
81 |
+
<li class="px-2 py-1 rounded hover:bg-gray-100 cursor-pointer flex items-center">
|
82 |
+
<i class="fas fa-file-audio text-gray-400 mr-2"></i> Interview_001
|
83 |
+
</li>
|
84 |
+
<li class="px-2 py-1 rounded hover:bg-gray-100 cursor-pointer flex items-center">
|
85 |
+
<i class="fas fa-file-audio text-gray-400 mr-2"></i> Meeting_2023
|
86 |
+
</li>
|
87 |
+
<li class="px-2 py-1 rounded hover:bg-gray-100 cursor-pointer flex items-center">
|
88 |
+
<i class="fas fa-file-audio text-gray-400 mr-2"></i> Podcast_Episode
|
89 |
+
</li>
|
90 |
+
</ul>
|
91 |
+
</div>
|
92 |
+
<div>
|
93 |
+
<h3 class="text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2">Settings</h3>
|
94 |
+
<ul class="space-y-1">
|
95 |
+
<li class="px-2 py-1 rounded hover:bg-gray-100 cursor-pointer flex items-center">
|
96 |
+
<i class="fas fa-cog text-gray-400 mr-2"></i> Preferences
|
97 |
+
</li>
|
98 |
+
<li class="px-2 py-1 rounded hover:bg-gray-100 cursor-pointer flex items-center">
|
99 |
+
<i class="fas fa-key text-gray-400 mr-2"></i> API Keys
|
100 |
+
</li>
|
101 |
+
<li class="px-2 py-1 rounded hover:bg-gray-100 cursor-pointer flex items-center">
|
102 |
+
<i class="fas fa-info-circle text-gray-400 mr-2"></i> About
|
103 |
+
</li>
|
104 |
+
</ul>
|
105 |
+
</div>
|
106 |
+
</div>
|
107 |
+
<div class="mt-auto p-4 border-t border-gray-200">
|
108 |
+
<div class="flex items-center">
|
109 |
+
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600">
|
110 |
+
<i class="fas fa-user"></i>
|
111 |
+
</div>
|
112 |
+
<div class="ml-2">
|
113 |
+
<p class="text-sm font-medium">John Doe</p>
|
114 |
+
<p class="text-xs text-gray-500">Free Plan</p>
|
115 |
+
</div>
|
116 |
+
</div>
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
+
|
120 |
+
<!-- Main Content -->
|
121 |
+
<div class="flex-1 flex flex-col overflow-hidden">
|
122 |
+
<!-- Top Bar -->
|
123 |
+
<div class="bg-white border-b border-gray-200 p-4 flex items-center justify-between">
|
124 |
+
<div class="flex items-center">
|
125 |
+
<button id="sidebarToggle" class="mr-4 text-gray-500 hover:text-gray-700">
|
126 |
+
<i class="fas fa-bars"></i>
|
127 |
+
</button>
|
128 |
+
<h2 class="text-lg font-semibold">Untitled Project</h2>
|
129 |
+
</div>
|
130 |
+
<div class="flex items-center space-x-2">
|
131 |
+
<button class="px-3 py-1 bg-gray-100 hover:bg-gray-200 rounded-md text-sm flex items-center">
|
132 |
+
<i class="fas fa-save mr-1"></i> Save
|
133 |
+
</button>
|
134 |
+
<div class="relative">
|
135 |
+
<button id="exportBtn" class="px-3 py-1 bg-indigo-600 hover:bg-indigo-700 text-white rounded-md text-sm flex items-center">
|
136 |
+
<i class="fas fa-file-export mr-1"></i> Export
|
137 |
+
</button>
|
138 |
+
<div id="exportDropdown" class="hidden absolute right-0 mt-1 w-48 bg-white rounded-md shadow-lg z-10">
|
139 |
+
<div class="py-1">
|
140 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Text (.txt)</a>
|
141 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Word (.docx)</a>
|
142 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Subtitles (.srt)</a>
|
143 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">JSON (.json)</a>
|
144 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Audio (.wav)</a>
|
145 |
+
</div>
|
146 |
+
</div>
|
147 |
+
</div>
|
148 |
+
</div>
|
149 |
+
</div>
|
150 |
+
|
151 |
+
<!-- Main Content Area -->
|
152 |
+
<div class="flex-1 overflow-auto p-6">
|
153 |
+
<div id="dropzone" class="dropzone rounded-lg p-12 text-center mb-8">
|
154 |
+
<div class="mx-auto w-16 h-16 bg-indigo-100 rounded-full flex items-center justify-center text-indigo-600 mb-4">
|
155 |
+
<i class="fas fa-microphone-alt text-2xl"></i>
|
156 |
+
</div>
|
157 |
+
<h3 class="text-lg font-medium text-gray-900 mb-2">Drag & drop your WAV files here</h3>
|
158 |
+
<p class="text-gray-500 mb-4">or</p>
|
159 |
+
<label for="fileInput" class="cursor-pointer inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none">
|
160 |
+
<i class="fas fa-folder-open mr-2"></i> Browse Files
|
161 |
+
</label>
|
162 |
+
<input id="fileInput" type="file" accept=".wav" multiple class="hidden">
|
163 |
+
<p class="text-sm text-gray-500 mt-4">Supports batch processing of multiple files</p>
|
164 |
+
</div>
|
165 |
+
|
166 |
+
<!-- Processing Section (hidden by default) -->
|
167 |
+
<div id="processingSection" class="hidden">
|
168 |
+
<div class="bg-white rounded-lg shadow-sm p-6 mb-6">
|
169 |
+
<div class="flex items-center justify-between mb-4">
|
170 |
+
<h3 class="text-lg font-medium">Processing Files</h3>
|
171 |
+
<span class="text-sm text-gray-500">1 of 3 files completed</span>
|
172 |
+
</div>
|
173 |
+
<div class="space-y-4">
|
174 |
+
<!-- Current File Progress -->
|
175 |
+
<div>
|
176 |
+
<div class="flex items-center justify-between mb-1">
|
177 |
+
<span class="text-sm font-medium">interview_001.wav</span>
|
178 |
+
<span class="text-xs text-gray-500">45%</span>
|
179 |
+
</div>
|
180 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
181 |
+
<div class="bg-indigo-600 h-2 rounded-full" style="width: 45%"></div>
|
182 |
+
</div>
|
183 |
+
<div class="mt-2 text-xs text-gray-500 flex justify-between">
|
184 |
+
<span>Speaker diarization</span>
|
185 |
+
<span>Noise reduction</span>
|
186 |
+
<span>Transcription</span>
|
187 |
+
<span>Tagging</span>
|
188 |
+
</div>
|
189 |
+
</div>
|
190 |
+
|
191 |
+
<!-- Queued Files -->
|
192 |
+
<div class="border-t border-gray-200 pt-4">
|
193 |
+
<div class="flex items-center justify-between text-sm">
|
194 |
+
<div class="flex items-center">
|
195 |
+
<i class="fas fa-clock text-gray-400 mr-2"></i>
|
196 |
+
<span>meeting_2023.wav</span>
|
197 |
+
</div>
|
198 |
+
<span class="text-gray-500">Queued</span>
|
199 |
+
</div>
|
200 |
+
<div class="flex items-center justify-between text-sm mt-2">
|
201 |
+
<div class="flex items-center">
|
202 |
+
<i class="fas fa-clock text-gray-400 mr-2"></i>
|
203 |
+
<span>podcast_episode.wav</span>
|
204 |
+
</div>
|
205 |
+
<span class="text-gray-500">Queued</span>
|
206 |
+
</div>
|
207 |
+
</div>
|
208 |
+
</div>
|
209 |
+
</div>
|
210 |
+
|
211 |
+
<!-- Transcription Preview -->
|
212 |
+
<div class="bg-white rounded-lg shadow-sm p-6">
|
213 |
+
<div class="flex items-center justify-between mb-4">
|
214 |
+
<h3 class="text-lg font-medium">Transcription Preview</h3>
|
215 |
+
<div class="flex space-x-2">
|
216 |
+
<button class="px-3 py-1 bg-gray-100 hover:bg-gray-200 rounded-md text-sm flex items-center">
|
217 |
+
<i class="fas fa-headphones mr-1"></i> Play
|
218 |
+
</button>
|
219 |
+
<button class="px-3 py-1 bg-gray-100 hover:bg-gray-200 rounded-md text-sm flex items-center">
|
220 |
+
<i class="fas fa-edit mr-1"></i> Edit
|
221 |
+
</button>
|
222 |
+
</div>
|
223 |
+
</div>
|
224 |
+
|
225 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
226 |
+
<!-- Waveform Visualization -->
|
227 |
+
<div>
|
228 |
+
<div class="waveform mb-4"></div>
|
229 |
+
<div class="flex items-center justify-between mb-2">
|
230 |
+
<div class="flex items-center space-x-2">
|
231 |
+
<button class="p-2 rounded-full bg-gray-100 hover:bg-gray-200">
|
232 |
+
<i class="fas fa-play text-gray-700"></i>
|
233 |
+
</button>
|
234 |
+
<span class="text-sm text-gray-500">00:45 / 02:30</span>
|
235 |
+
</div>
|
236 |
+
<div class="flex items-center space-x-1">
|
237 |
+
<button class="p-2 rounded-full bg-gray-100 hover:bg-gray-200" title="Noise Reduction">
|
238 |
+
<i class="fas fa-volume-mute text-gray-700"></i>
|
239 |
+
</button>
|
240 |
+
<button class="p-2 rounded-full bg-gray-100 hover:bg-gray-200" title="Diarization Settings">
|
241 |
+
<i class="fas fa-users text-gray-700"></i>
|
242 |
+
</button>
|
243 |
+
<button class="p-2 rounded-full bg-gray-100 hover:bg-gray-200" title="Emotion Detection">
|
244 |
+
<i class="fas fa-smile text-gray-700"></i>
|
245 |
+
</button>
|
246 |
+
</div>
|
247 |
+
</div>
|
248 |
+
</div>
|
249 |
+
|
250 |
+
<!-- Transcription Text -->
|
251 |
+
<div class="bg-gray-50 p-4 rounded-md max-h-96 overflow-y-auto">
|
252 |
+
<div class="space-y-4">
|
253 |
+
<div class="speaker-1 pl-3">
|
254 |
+
<div class="flex items-center mb-1">
|
255 |
+
<span class="font-medium text-indigo-600">Speaker 1</span>
|
256 |
+
<button class="ml-2 text-gray-400 hover:text-gray-600">
|
257 |
+
<i class="fas fa-pencil-alt text-xs"></i>
|
258 |
+
</button>
|
259 |
+
</div>
|
260 |
+
<p class="text-gray-800">
|
261 |
+
Hello everyone, welcome to today's meeting. <span class="tag-emphasis">Really</span> glad you could all make it. <span class="tag-pause">[pause]</span> We have a lot to cover today.
|
262 |
+
</p>
|
263 |
+
</div>
|
264 |
+
<div class="speaker-2 pl-3">
|
265 |
+
<div class="flex items-center mb-1">
|
266 |
+
<span class="font-medium text-green-600">Speaker 2</span>
|
267 |
+
<button class="ml-2 text-gray-400 hover:text-gray-600">
|
268 |
+
<i class="fas fa-pencil-alt text-xs"></i>
|
269 |
+
</button>
|
270 |
+
</div>
|
271 |
+
<p class="text-gray-800">
|
272 |
+
Thanks for having us! <span class="tag-laugh">[laughs]</span> I'm excited to discuss the new project updates. <span class="tag-emotion">[emotional tone: happy]</span>
|
273 |
+
</p>
|
274 |
+
</div>
|
275 |
+
<div class="speaker-1 pl-3">
|
276 |
+
<div class="flex items-center mb-1">
|
277 |
+
<span class="font-medium text-indigo-600">Speaker 1</span>
|
278 |
+
<button class="ml-2 text-gray-400 hover:text-gray-600">
|
279 |
+
<i class="fas fa-pencil-alt text-xs"></i>
|
280 |
+
</button>
|
281 |
+
</div>
|
282 |
+
<p class="text-gray-800">
|
283 |
+
Let's start with the quarterly results. <span class="tag-emphasis">Revenue</span> is up by 15% compared to last quarter, which is <span class="tag-emotion">[emotional tone: excited]</span> fantastic news!
|
284 |
+
</p>
|
285 |
+
</div>
|
286 |
+
<div class="animate-pulse flex items-center text-gray-500">
|
287 |
+
<i class="fas fa-spinner fa-spin mr-2"></i>
|
288 |
+
<span>Transcribing next segment...</span>
|
289 |
+
</div>
|
290 |
+
</div>
|
291 |
+
</div>
|
292 |
+
</div>
|
293 |
+
</div>
|
294 |
+
|
295 |
+
<!-- Processing Settings -->
|
296 |
+
<div class="bg-white rounded-lg shadow-sm p-6 mt-6">
|
297 |
+
<h3 class="text-lg font-medium mb-4">Processing Settings</h3>
|
298 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
|
299 |
+
<div class="border border-gray-200 rounded-md p-4">
|
300 |
+
<div class="flex items-center justify-between mb-2">
|
301 |
+
<h4 class="font-medium">Noise Reduction</h4>
|
302 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
303 |
+
<input type="checkbox" value="" class="sr-only peer" checked>
|
304 |
+
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-indigo-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600"></div>
|
305 |
+
</label>
|
306 |
+
</div>
|
307 |
+
<p class="text-sm text-gray-500">Clean up background noise and enhance voice clarity</p>
|
308 |
+
</div>
|
309 |
+
<div class="border border-gray-200 rounded-md p-4">
|
310 |
+
<div class="mb-2">
|
311 |
+
<h4 class="font-medium">Transcription Model</h4>
|
312 |
+
</div>
|
313 |
+
<select class="block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm">
|
314 |
+
<option>Whisper Small (Fastest)</option>
|
315 |
+
<option selected>Whisper Medium (Balanced)</option>
|
316 |
+
<option>Whisper Large (Most Accurate)</option>
|
317 |
+
</select>
|
318 |
+
</div>
|
319 |
+
<div class="border border-gray-200 rounded-md p-4">
|
320 |
+
<div class="mb-2">
|
321 |
+
<h4 class="font-medium">Speaker Diarization</h4>
|
322 |
+
</div>
|
323 |
+
<select class="block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm">
|
324 |
+
<option>Basic (2-3 speakers)</option>
|
325 |
+
<option selected>Advanced (up to 5 speakers)</option>
|
326 |
+
<option>High Precision (1-2 speakers)</option>
|
327 |
+
</select>
|
328 |
+
</div>
|
329 |
+
<div class="border border-gray-200 rounded-md p-4">
|
330 |
+
<div class="flex items-center justify-between mb-2">
|
331 |
+
<h4 class="font-medium">Emotion Detection</h4>
|
332 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
333 |
+
<input type="checkbox" value="" class="sr-only peer" checked>
|
334 |
+
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-indigo-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600"></div>
|
335 |
+
</label>
|
336 |
+
</div>
|
337 |
+
<p class="text-sm text-gray-500">Detect emotional tone and vocal inflections</p>
|
338 |
+
</div>
|
339 |
+
</div>
|
340 |
+
</div>
|
341 |
+
</div>
|
342 |
+
</div>
|
343 |
+
</div>
|
344 |
+
</div>
|
345 |
+
|
346 |
+
<script>
|
347 |
+
// Toggle sidebar
|
348 |
+
document.getElementById('sidebarToggle').addEventListener('click', function() {
|
349 |
+
document.querySelector('.sidebar').classList.toggle('hidden');
|
350 |
+
});
|
351 |
+
|
352 |
+
// Export dropdown
|
353 |
+
document.getElementById('exportBtn').addEventListener('click', function(e) {
|
354 |
+
e.stopPropagation();
|
355 |
+
document.getElementById('exportDropdown').classList.toggle('hidden');
|
356 |
+
});
|
357 |
+
|
358 |
+
// Close dropdown when clicking elsewhere
|
359 |
+
document.addEventListener('click', function() {
|
360 |
+
document.getElementById('exportDropdown').classList.add('hidden');
|
361 |
+
});
|
362 |
+
|
363 |
+
// Drag and drop functionality
|
364 |
+
const dropzone = document.getElementById('dropzone');
|
365 |
+
const fileInput = document.getElementById('fileInput');
|
366 |
+
const processingSection = document.getElementById('processingSection');
|
367 |
+
|
368 |
+
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
|
369 |
+
dropzone.addEventListener(eventName, preventDefaults, false);
|
370 |
+
});
|
371 |
+
|
372 |
+
function preventDefaults(e) {
|
373 |
+
e.preventDefault();
|
374 |
+
e.stopPropagation();
|
375 |
+
}
|
376 |
+
|
377 |
+
['dragenter', 'dragover'].forEach(eventName => {
|
378 |
+
dropzone.addEventListener(eventName, highlight, false);
|
379 |
+
});
|
380 |
+
|
381 |
+
['dragleave', 'drop'].forEach(eventName => {
|
382 |
+
dropzone.addEventListener(eventName, unhighlight, false);
|
383 |
+
});
|
384 |
+
|
385 |
+
function highlight() {
|
386 |
+
dropzone.classList.add('active');
|
387 |
+
}
|
388 |
+
|
389 |
+
function unhighlight() {
|
390 |
+
dropzone.classList.remove('active');
|
391 |
+
}
|
392 |
+
|
393 |
+
dropzone.addEventListener('drop', handleDrop, false);
|
394 |
+
fileInput.addEventListener('change', handleFiles);
|
395 |
+
|
396 |
+
function handleDrop(e) {
|
397 |
+
const dt = e.dataTransfer;
|
398 |
+
const files = dt.files;
|
399 |
+
handleFiles({ target: { files } });
|
400 |
+
}
|
401 |
+
|
402 |
+
function handleFiles(e) {
|
403 |
+
const files = e.target.files;
|
404 |
+
if (files.length > 0) {
|
405 |
+
// Show processing section
|
406 |
+
dropzone.classList.add('hidden');
|
407 |
+
processingSection.classList.remove('hidden');
|
408 |
+
|
409 |
+
// Here you would normally process the files
|
410 |
+
console.log('Files to process:', files);
|
411 |
+
}
|
412 |
+
}
|
413 |
+
|
414 |
+
// Click on dropzone triggers file input
|
415 |
+
dropzone.addEventListener('click', () => {
|
416 |
+
fileInput.click();
|
417 |
+
});
|
418 |
+
|
419 |
+
// New project button
|
420 |
+
document.getElementById('newProjectBtn').addEventListener('click', function() {
|
421 |
+
dropzone.classList.remove('hidden');
|
422 |
+
processingSection.classList.add('hidden');
|
423 |
+
fileInput.value = ''; // Reset file input
|
424 |
+
});
|
425 |
+
</script>
|
426 |
+
<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=MagicBullets/tts" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
427 |
+
</html>
|
prompts.txt
ADDED
File without changes
|