AhBoh commited on
Commit
d57f5e3
·
verified ·
1 Parent(s): ccea0d9

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +198 -19
  3. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Prova 2
3
- emoji: 🚀
4
- colorFrom: green
5
  colorTo: yellow
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: prova-2
3
+ emoji: 🐳
4
+ colorFrom: purple
5
  colorTo: yellow
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,198 @@
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>WaveForm - Audio Processor</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/wavesurfer.js@7"></script>
9
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
10
+ <style>
11
+ .gradient-bg {
12
+ background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
13
+ }
14
+ .waveform-container {
15
+ height: 200px;
16
+ background: rgba(255, 255, 255, 0.1);
17
+ border-radius: 10px;
18
+ backdrop-filter: blur(5px);
19
+ }
20
+ .knob {
21
+ width: 60px;
22
+ height: 60px;
23
+ border-radius: 50%;
24
+ background: linear-gradient(145deg, #2a5298, #1e3c72);
25
+ box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3),
26
+ -5px -5px 15px rgba(255, 255, 255, 0.1);
27
+ position: relative;
28
+ cursor: pointer;
29
+ }
30
+ .knob::after {
31
+ content: '';
32
+ position: absolute;
33
+ width: 10px;
34
+ height: 10px;
35
+ background: #fff;
36
+ border-radius: 50%;
37
+ top: 10px;
38
+ left: 50%;
39
+ transform: translateX(-50%);
40
+ }
41
+ .visualizer {
42
+ height: 150px;
43
+ background: rgba(0, 0, 0, 0.2);
44
+ border-radius: 10px;
45
+ position: relative;
46
+ overflow: hidden;
47
+ }
48
+ .bar {
49
+ position: absolute;
50
+ bottom: 0;
51
+ width: 8px;
52
+ background: #4facfe;
53
+ border-radius: 4px 4px 0 0;
54
+ transition: height 0.1s ease;
55
+ }
56
+ @keyframes pulse {
57
+ 0% { transform: scale(1); }
58
+ 50% { transform: scale(1.05); }
59
+ 100% { transform: scale(1); }
60
+ }
61
+ .pulse {
62
+ animation: pulse 2s infinite;
63
+ }
64
+ </style>
65
+ </head>
66
+ <body class="gradient-bg min-h-screen text-white font-sans">
67
+ <div class="container mx-auto px-4 py-8">
68
+ <header class="flex justify-between items-center mb-8">
69
+ <div class="flex items-center">
70
+ <i class="fas fa-wave-square text-4xl mr-3 text-blue-300"></i>
71
+ <h1 class="text-3xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-blue-300 to-purple-300">
72
+ WaveForm Pro
73
+ </h1>
74
+ </div>
75
+ <div class="flex space-x-4">
76
+ <button id="helpBtn" class="px-4 py-2 rounded-full bg-blue-600 hover:bg-blue-700 transition">
77
+ <i class="fas fa-question-circle mr-2"></i>Help
78
+ </button>
79
+ <button class="px-4 py-2 rounded-full bg-purple-600 hover:bg-purple-700 transition">
80
+ <i class="fas fa-cog mr-2"></i>Settings
81
+ </button>
82
+ </div>
83
+ </header>
84
+
85
+ <main class="grid grid-cols-1 lg:grid-cols-3 gap-6">
86
+ <!-- Left Panel - File and Basic Controls -->
87
+ <div class="bg-white bg-opacity-10 p-6 rounded-xl backdrop-blur-sm border border-white border-opacity-20">
88
+ <h2 class="text-xl font-semibold mb-4 flex items-center">
89
+ <i class="fas fa-file-audio mr-2"></i> Audio File
90
+ </h2>
91
+
92
+ <div class="mb-6">
93
+ <label class="block mb-2 text-sm font-medium">Upload Audio</label>
94
+ <div class="flex items-center space-x-2">
95
+ <input type="file" id="audioUpload" accept="audio/*" class="hidden">
96
+ <button id="uploadBtn" class="flex-1 px-4 py-2 bg-blue-600 hover:bg-blue-700 rounded-lg transition">
97
+ <i class="fas fa-upload mr-2"></i> Choose File
98
+ </button>
99
+ <button id="recordBtn" class="px-4 py-2 bg-red-600 hover:bg-red-700 rounded-lg transition">
100
+ <i class="fas fa-microphone mr-2"></i> Record
101
+ </button>
102
+ </div>
103
+ <div id="fileName" class="mt-2 text-sm text-blue-200"></div>
104
+ </div>
105
+
106
+ <div class="mb-6">
107
+ <h3 class="text-lg font-medium mb-3">Playback Controls</h3>
108
+ <div class="flex justify-center items-center space-x-6">
109
+ <button id="rewindBtn" class="p-3 rounded-full bg-blue-800 hover:bg-blue-900 transition">
110
+ <i class="fas fa-backward"></i>
111
+ </button>
112
+ <button id="playBtn" class="p-4 rounded-full bg-green-600 hover:bg-green-700 transition text-xl">
113
+ <i class="fas fa-play"></i>
114
+ </button>
115
+ <button id="pauseBtn" class="p-4 rounded-full bg-yellow-600 hover:bg-yellow-700 transition text-xl">
116
+ <i class="fas fa-pause"></i>
117
+ </button>
118
+ <button id="forwardBtn" class="p-3 rounded-full bg-blue-800 hover:bg-blue-900 transition">
119
+ <i class="fas fa-forward"></i>
120
+ </button>
121
+ </div>
122
+ </div>
123
+
124
+ <div class="mb-4">
125
+ <label for="volume" class="block mb-2 text-sm font-medium">Volume</label>
126
+ <div class="flex items-center">
127
+ <i class="fas fa-volume-down mr-2 text-blue-300"></i>
128
+ <input type="range" id="volume" min="0" max="1" step="0.01" value="0.8"
129
+ class="w-full h-2 bg-blue-900 rounded-lg appearance-none cursor-pointer">
130
+ <i class="fas fa-volume-up ml-2 text-blue-300"></i>
131
+ </div>
132
+ </div>
133
+
134
+ <div>
135
+ <label for="playbackRate" class="block mb-2 text-sm font-medium">Playback Speed</label>
136
+ <div class="flex items-center">
137
+ <i class="fas fa-tachometer-alt mr-2 text-blue-300"></i>
138
+ <input type="range" id="playbackRate" min="0.5" max="2" step="0.1" value="1"
139
+ class="w-full h-2 bg-blue-900 rounded-lg appearance-none cursor-pointer">
140
+ <span id="rateValue" class="ml-2 text-sm">1.0x</span>
141
+ </div>
142
+ </div>
143
+ </div>
144
+
145
+ <!-- Center Panel - Waveform and Visualizer -->
146
+ <div class="space-y-6">
147
+ <div class="bg-white bg-opacity-10 p-6 rounded-xl backdrop-blur-sm border border-white border-opacity-20">
148
+ <h2 class="text-xl font-semibold mb-4 flex items-center">
149
+ <i class="fas fa-waveform-path mr-2"></i> Waveform
150
+ </h2>
151
+ <div id="waveform" class="waveform-container"></div>
152
+ <div class="flex justify-between mt-4 text-sm">
153
+ <span id="currentTime">0:00</span>
154
+ <span id="duration">0:00</span>
155
+ </div>
156
+ </div>
157
+
158
+ <div class="bg-white bg-opacity-10 p-6 rounded-xl backdrop-blur-sm border border-white border-opacity-20">
159
+ <h2 class="text-xl font-semibold mb-4 flex items-center">
160
+ <i class="fas fa-chart-bar mr-2"></i> Audio Visualizer
161
+ </h2>
162
+ <div id="visualizer" class="visualizer">
163
+ <!-- Bars will be generated by JavaScript -->
164
+ </div>
165
+ </div>
166
+ </div>
167
+
168
+ <!-- Right Panel - Effects and Processing -->
169
+ <div class="bg-white bg-opacity-10 p-6 rounded-xl backdrop-blur-sm border border-white border-opacity-20">
170
+ <h2 class="text-xl font-semibold mb-4 flex items-center">
171
+ <i class="fas fa-sliders-h mr-2"></i> Audio Effects
172
+ </h2>
173
+
174
+ <div class="space-y-6">
175
+ <div class="effect-panel">
176
+ <div class="flex justify-between items-center mb-2">
177
+ <label class="font-medium">Equalizer</label>
178
+ <div class="flex items-center">
179
+ <label class="relative inline-flex items-center cursor-pointer">
180
+ <input type="checkbox" id="eqToggle" class="sr-only peer" checked>
181
+ <div class="w-9 h-5 bg-blue-900 peer-focus:outline-none 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-4 after:w-4 after:transition-all peer-checked:bg-blue-600"></div>
182
+ </label>
183
+ </div>
184
+ </div>
185
+
186
+ <div class="grid grid-cols-5 gap-2 mb-4">
187
+ <div class="flex flex-col items-center">
188
+ <label class="text-xs mb-1">60Hz</label>
189
+ <input type="range" class="eq-band" data-freq="60" min="-12" max="12" value="0" orient="vertical">
190
+ </div>
191
+ <div class="flex flex-col items-center">
192
+ <label class="text-xs mb-1">230Hz</label>
193
+ <input type="range" class="eq-band" data-freq="230" min="-12" max="12" value="0" orient="vertical">
194
+ </div>
195
+ <div class="flex flex-col items-center">
196
+ <label class="text-xs mb-1">910Hz</label>
197
+ <input type="range" class="eq-band" data-freq="910" min="-12" max="12" value="0"
198
+ </html>
prompts.txt ADDED
File without changes