velobot commited on
Commit
87e1e4c
·
verified ·
1 Parent(s): fcc0928

Create a professional video between a women and a men in regards to the podcast that is attached: /Users/orbital/Desktop/Velocity folder/Velocity_Plotter_Specs_Deployment_and_Throughput_Secrets.m4a

Browse files
Files changed (4) hide show
  1. README.md +8 -5
  2. index.html +162 -19
  3. script.js +88 -0
  4. style.css +35 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Poddialogue Visualizer
3
- emoji: 🐠
4
- colorFrom: indigo
5
- colorTo: green
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: PodDialogue Visualizer 🎙️
3
+ colorFrom: purple
4
+ colorTo: blue
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
index.html CHANGED
@@ -1,19 +1,162 @@
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>PodDialogue Visualizer</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ </head>
12
+ <body class="bg-gray-100 min-h-screen">
13
+ <div class="container mx-auto px-4 py-8">
14
+ <header class="mb-10">
15
+ <h1 class="text-4xl font-bold text-center text-gray-800">PodDialogue Visualizer 🎙️</h1>
16
+ <p class="text-lg text-center text-gray-600 mt-2">Visualizing conversations from your favorite podcasts</p>
17
+ </header>
18
+
19
+ <main class="bg-white rounded-xl shadow-lg p-6 md:p-8">
20
+ <div class="flex flex-col md:flex-row gap-8">
21
+ <!-- Video Player Section -->
22
+ <div class="flex-1">
23
+ <div class="aspect-w-16 aspect-h-9 bg-gray-200 rounded-lg overflow-hidden">
24
+ <div class="w-full h-full flex items-center justify-center">
25
+ <div class="text-center">
26
+ <i data-feather="play-circle" class="w-16 h-16 text-gray-400 mx-auto"></i>
27
+ <p class="mt-2 text-gray-500">Podcast visualization will appear here</p>
28
+ </div>
29
+ </div>
30
+ </div>
31
+
32
+ <div class="mt-6 space-y-4">
33
+ <h2 class="text-2xl font-semibold text-gray-800">Velocity Plotter: Specs, Deployment and Throughput Secrets</h2>
34
+ <p class="text-gray-600">A professional discussion between industry experts</p>
35
+
36
+ <div class="flex items-center space-x-4">
37
+ <div class="flex -space-x-2">
38
+ <img src="http://static.photos/people/200x200/1" alt="Speaker 1" class="w-10 h-10 rounded-full border-2 border-white">
39
+ <img src="http://static.photos/people/200x200/2" alt="Speaker 2" class="w-10 h-10 rounded-full border-2 border-white">
40
+ </div>
41
+ <div>
42
+ <p class="font-medium text-gray-700">Hosted by Sarah & Michael</p>
43
+ <p class="text-sm text-gray-500">45 min • Technology Podcast</p>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </div>
48
+
49
+ <!-- Transcript Section -->
50
+ <div class="flex-1">
51
+ <div class="bg-gray-50 rounded-lg p-5 h-full">
52
+ <div class="flex justify-between items-center mb-4">
53
+ <h3 class="text-xl font-semibold text-gray-800">Conversation Transcript</h3>
54
+ <button class="text-blue-500 hover:text-blue-700 flex items-center">
55
+ <i data-feather="download" class="w-4 h-4 mr-1"></i>
56
+ <span>Download</span>
57
+ </button>
58
+ </div>
59
+
60
+ <div class="space-y-6 overflow-y-auto max-h-96">
61
+ <!-- Conversation bubble 1 -->
62
+ <div class="flex items-start space-x-3">
63
+ <img src="http://static.photos/people/200x200/1" alt="Sarah" class="w-8 h-8 rounded-full mt-1">
64
+ <div class="bg-blue-50 rounded-lg p-3 max-w-[80%]">
65
+ <p class="font-medium text-blue-800">Sarah</p>
66
+ <p class="text-gray-700 mt-1">Today we're discussing the Velocity Plotter specifications and the secrets behind its deployment and throughput...</p>
67
+ <p class="text-xs text-gray-500 mt-2">00:45</p>
68
+ </div>
69
+ </div>
70
+
71
+ <!-- Conversation bubble 2 -->
72
+ <div class="flex items-start space-x-3">
73
+ <img src="http://static.photos/people/200x200/2" alt="Michael" class="w-8 h-8 rounded-full mt-1">
74
+ <div class="bg-green-50 rounded-lg p-3 max-w-[80%]">
75
+ <p class="font-medium text-green-800">Michael</p>
76
+ <p class="text-gray-700 mt-1">That's right, Sarah. The deployment architecture is particularly interesting because it uses a novel approach to resource allocation...</p>
77
+ <p class="text-xs text-gray-500 mt-2">01:20</p>
78
+ </div>
79
+ </div>
80
+
81
+ <!-- Conversation bubble 3 -->
82
+ <div class="flex items-start space-x-3">
83
+ <img src="http://static.photos/people/200x200/1" alt="Sarah" class="w-8 h-8 rounded-full mt-1">
84
+ <div class="bg-blue-50 rounded-lg p-3 max-w-[80%]">
85
+ <p class="font-medium text-blue-800">Sarah</p>
86
+ <p class="text-gray-700 mt-1">Could you elaborate on the throughput optimization techniques? Our listeners would love to hear about that.</p>
87
+ <p class="text-xs text-gray-500 mt-2">02:15</p>
88
+ </div>
89
+ </div>
90
+
91
+ <!-- Placeholder for more conversation -->
92
+ <div class="text-center py-4">
93
+ <p class="text-gray-400">More conversation will appear as the podcast plays</p>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ </div>
98
+ </div>
99
+
100
+ <!-- Audio Controls -->
101
+ <div class="mt-8 bg-gray-50 rounded-lg p-4">
102
+ <div class="flex items-center justify-between mb-3">
103
+ <span class="text-sm text-gray-500">00:45</span>
104
+ <span class="text-sm text-gray-500">45:22</span>
105
+ </div>
106
+ <div class="relative pt-1">
107
+ <div class="overflow-hidden h-2 mb-4 text-xs flex rounded bg-gray-200">
108
+ <div style="width: 10%" class="shadow-none flex flex-col text-center whitespace-nowrap text-white justify-center bg-blue-500"></div>
109
+ </div>
110
+ </div>
111
+ <div class="flex items-center justify-center space-x-6">
112
+ <button class="p-2 rounded-full bg-gray-200 hover:bg-gray-300">
113
+ <i data-feather="skip-back" class="w-5 h-5 text-gray-700"></i>
114
+ </button>
115
+ <button class="p-3 rounded-full bg-blue-500 hover:bg-blue-600 text-white">
116
+ <i data-feather="play" class="w-6 h-6"></i>
117
+ </button>
118
+ <button class="p-2 rounded-full bg-gray-200 hover:bg-gray-300">
119
+ <i data-feather="skip-forward" class="w-5 h-5 text-gray-700"></i>
120
+ </button>
121
+ <div class="flex items-center space-x-2">
122
+ <i data-feather="volume-2" class="w-4 h-4 text-gray-500"></i>
123
+ <div class="w-20 bg-gray-200 rounded-full h-1"></div>
124
+ </div>
125
+ </div>
126
+ </div>
127
+
128
+ <!-- Related Content -->
129
+ <div class="mt-12">
130
+ <h3 class="text-xl font-semibold text-gray-800 mb-4">More Episodes</h3>
131
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
132
+ <div class="bg-gray-50 rounded-lg p-4 hover:bg-gray-100 transition">
133
+ <div class="aspect-w-16 aspect-h-9 bg-gray-200 rounded mb-3"></div>
134
+ <h4 class="font-medium text-gray-800">Performance Metrics Deep Dive</h4>
135
+ <p class="text-sm text-gray-500 mt-1">Sarah & Michael • 38 min</p>
136
+ </div>
137
+ <div class="bg-gray-50 rounded-lg p-4 hover:bg-gray-100 transition">
138
+ <div class="aspect-w-16 aspect-h-9 bg-gray-200 rounded mb-3"></div>
139
+ <h4 class="font-medium text-gray-800">Cloud Deployment Strategies</h4>
140
+ <p class="text-sm text-gray-500 mt-1">Sarah & Michael • 42 min</p>
141
+ </div>
142
+ <div class="bg-gray-50 rounded-lg p-4 hover:bg-gray-100 transition">
143
+ <div class="aspect-w-16 aspect-h-9 bg-gray-200 rounded mb-3"></div>
144
+ <h4 class="font-medium text-gray-800">The Future of Data Throughput</h4>
145
+ <p class="text-sm text-gray-500 mt-1">Sarah & Michael • 51 min</p>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ </main>
150
+
151
+ <footer class="mt-16 text-center text-gray-500 text-sm">
152
+ <p>© 2023 PodDialogue Visualizer. All rights reserved.</p>
153
+ </footer>
154
+ </div>
155
+
156
+ <script src="script.js"></script>
157
+ <script>
158
+ feather.replace();
159
+ </script>
160
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
161
+ </body>
162
+ </html>
script.js ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', function() {
2
+ // Simulate playback progress
3
+ const progressBar = document.querySelector('.bg-blue-500');
4
+ let progress = 10;
5
+
6
+ const progressInterval = setInterval(() => {
7
+ progress += 0.1;
8
+ if (progress > 100) {
9
+ clearInterval(progressInterval);
10
+ return;
11
+ }
12
+ progressBar.style.width = `${progress}%`;
13
+ }, 1000);
14
+
15
+ // Play/pause button functionality
16
+ const playButton = document.querySelector('button[aria-label="Play"]');
17
+ playButton.addEventListener('click', function() {
18
+ const icon = this.querySelector('i');
19
+ if (icon.dataset.feather === 'play') {
20
+ icon.dataset.feather = 'pause';
21
+ feather.replace();
22
+ } else {
23
+ icon.dataset.feather = 'play';
24
+ feather.replace();
25
+ }
26
+ });
27
+
28
+ // Simulate conversation loading
29
+ const transcriptContainer = document.querySelector('.overflow-y-auto');
30
+ const conversation = [
31
+ {
32
+ speaker: "Michael",
33
+ text: "The key to throughput optimization lies in the parallel processing architecture we've developed. It allows for simultaneous data streams without resource contention.",
34
+ time: "03:45"
35
+ },
36
+ {
37
+ speaker: "Sarah",
38
+ text: "That's fascinating! How does this compare to traditional sequential processing models?",
39
+ time: "05:12"
40
+ },
41
+ {
42
+ speaker: "Michael",
43
+ text: "We're seeing about 3.2x improvement in benchmark tests, with even greater gains in real-world deployment scenarios.",
44
+ time: "06:30"
45
+ },
46
+ {
47
+ speaker: "Sarah",
48
+ text: "Our listeners in enterprise environments will be particularly interested in the deployment specifications. Can you walk us through those?",
49
+ time: "08:45"
50
+ }
51
+ ];
52
+
53
+ let currentIndex = 0;
54
+ const conversationInterval = setInterval(() => {
55
+ if (currentIndex >= conversation.length) {
56
+ clearInterval(conversationInterval);
57
+ return;
58
+ }
59
+
60
+ const message = conversation[currentIndex];
61
+ const bubble = document.createElement('div');
62
+ bubble.className = `flex items-start space-x-3`;
63
+
64
+ if (message.speaker === "Michael") {
65
+ bubble.innerHTML = `
66
+ <img src="http://static.photos/people/200x200/2" alt="Michael" class="w-8 h-8 rounded-full mt-1">
67
+ <div class="bg-green-50 rounded-lg p-3 max-w-[80%]">
68
+ <p class="font-medium text-green-800">Michael</p>
69
+ <p class="text-gray-700 mt-1">${message.text}</p>
70
+ <p class="text-xs text-gray-500 mt-2">${message.time}</p>
71
+ </div>
72
+ `;
73
+ } else {
74
+ bubble.innerHTML = `
75
+ <img src="http://static.photos/people/200x200/1" alt="Sarah" class="w-8 h-8 rounded-full mt-1">
76
+ <div class="bg-blue-50 rounded-lg p-3 max-w-[80%]">
77
+ <p class="font-medium text-blue-800">Sarah</p>
78
+ <p class="text-gray-700 mt-1">${message.text}</p>
79
+ <p class="text-xs text-gray-500 mt-2">${message.time}</p>
80
+ </div>
81
+ `;
82
+ }
83
+
84
+ transcriptContainer.insertBefore(bubble, transcriptContainer.lastElementChild);
85
+ transcriptContainer.scrollTop = transcriptContainer.scrollHeight;
86
+ currentIndex++;
87
+ }, 8000);
88
+ });
style.css CHANGED
@@ -1,28 +1,45 @@
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
2
+
3
  body {
4
+ font-family: 'Inter', sans-serif;
5
+ }
6
+
7
+ /* Custom scrollbar for transcript */
8
+ ::-webkit-scrollbar {
9
+ width: 6px;
10
  }
11
 
12
+ ::-webkit-scrollbar-track {
13
+ background: #f1f1f1;
14
+ border-radius: 10px;
15
  }
16
 
17
+ ::-webkit-scrollbar-thumb {
18
+ background: #c1c1c1;
19
+ border-radius: 10px;
 
 
20
  }
21
 
22
+ ::-webkit-scrollbar-thumb:hover {
23
+ background: #a1a1a1;
 
 
 
 
24
  }
25
 
26
+ /* Animation for conversation bubbles */
27
+ @keyframes fadeIn {
28
+ from { opacity: 0; transform: translateY(10px); }
29
+ to { opacity: 1; transform: translateY(0); }
30
  }
31
+
32
+ .flex.items-start.space-x-3 {
33
+ animation: fadeIn 0.3s ease-out forwards;
34
+ }
35
+
36
+ /* Responsive adjustments */
37
+ @media (max-width: 768px) {
38
+ .flex-col.md\:flex-row {
39
+ flex-direction: column;
40
+ }
41
+
42
+ .max-w-\[80\%\] {
43
+ max-width: 100%;
44
+ }
45
+ }