Files changed (1) hide show
  1. app.py +3 -130
app.py CHANGED
@@ -78,8 +78,6 @@ def process_audio(audio_file, seconds=0.05):
78
  # return demo
79
 
80
 
81
-
82
-
83
  def ui():
84
  theme = gr.themes.Soft(
85
  font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial", "sans-serif"]
@@ -119,18 +117,14 @@ def ui():
119
  </p>
120
 
121
  <p style="font-size:0.9em; color:#777;">
122
- Install locally on your computer, enjoy unlimited runs with no waiting queue
123
- <a href="https://github.com/NeuralFalconYT/Remove-Silence-From-Audio" target="_blank" style="text-decoration:none;">
124
- Download Link
125
  </a>
126
  </p>
127
  </div>
128
  """)
129
 
130
-
131
-
132
-
133
-
134
  with gr.Row():
135
  # LEFT: Inputs
136
  with gr.Column(scale=1):
@@ -161,128 +155,7 @@ def ui():
161
  inputs=[audio_input, silence_threshold],
162
  outputs=[audio_output, file_output, duration_output]
163
  )
164
- gr.HTML("""
165
- <style>
166
- /* Futuristic Footer Styles */
167
- @keyframes cyber-border-flow {
168
- 0% {background-position: 0% 50%;}
169
- 50% {background-position: 100% 50%;}
170
- 100% {background-position: 0% 50%;}
171
- }
172
-
173
- .cyber-promo-card {
174
- margin: 50px auto 30px auto;
175
- max-width: 850px;
176
- padding: 3px; /* Thickness of the gradient border */
177
- border-radius: 20px;
178
- background: linear-gradient(90deg, #ff00cc, #333399, #00f2ff);
179
- background-size: 200% 200%;
180
- animation: cyber-border-flow 4s ease infinite;
181
- box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
182
- }
183
-
184
- .cyber-promo-inner {
185
- background: #0f172a; /* Dark Slate background */
186
- border-radius: 17px; /* Slightly less than parent to fit border */
187
- padding: 30px 20px;
188
- text-align: center;
189
- position: relative;
190
- overflow: hidden;
191
- }
192
-
193
- /* Subtle grid pattern overlay */
194
- .cyber-promo-inner::before {
195
- content: "";
196
- position: absolute;
197
- top: 0; left: 0; width: 100%; height: 100%;
198
- background-image:
199
- linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
200
- linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
201
- background-size: 40px 40px;
202
- pointer-events: none;
203
- z-index: 0;
204
- }
205
 
206
- .cyber-h2 {
207
- color: #fff;
208
- font-family: sans-serif;
209
- font-size: 1.5rem;
210
- font-weight: 800;
211
- text-transform: uppercase;
212
- letter-spacing: 2px;
213
- margin: 0 0 10px 0;
214
- text-shadow: 0 0 10px rgba(0, 204, 255, 0.6);
215
- position: relative;
216
- z-index: 1;
217
- }
218
-
219
- .cyber-p {
220
- color: #cbd5e1;
221
- font-family: sans-serif;
222
- font-size: 1rem;
223
- line-height: 1.5;
224
- margin: 0 0 25px 0;
225
- position: relative;
226
- z-index: 1;
227
- }
228
-
229
- .cyber-button {
230
- display: inline-block;
231
- padding: 12px 35px;
232
- background: transparent;
233
- color: #00f2ff;
234
- border: 2px solid #00f2ff;
235
- border-radius: 6px;
236
- text-decoration: none;
237
- font-family: sans-serif;
238
- font-weight: 700;
239
- font-size: 0.95rem;
240
- text-transform: uppercase;
241
- letter-spacing: 1px;
242
- transition: all 0.3s ease;
243
- position: relative;
244
- z-index: 1;
245
- box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
246
- }
247
-
248
- .cyber-button:hover {
249
- background: #00f2ff;
250
- color: #000;
251
- box-shadow: 0 0 30px rgba(0, 242, 255, 0.8);
252
- transform: scale(1.02);
253
- }
254
-
255
- .dev-credit {
256
- margin-top: 25px;
257
- font-size: 0.8rem;
258
- color: #64748b;
259
- position: relative;
260
- z-index: 1;
261
- }
262
- .dev-credit a {
263
- color: #94a3b8;
264
- text-decoration: none;
265
- transition: color 0.2s;
266
- }
267
- .dev-credit a:hover {
268
- color: #fff;
269
- }
270
- </style>
271
-
272
- <div class="cyber-promo-card">
273
- <div class="cyber-promo-inner">
274
- <h2 class="cyber-h2">✂️ Remove Silence from Video is now available</h2>
275
- <a href="https://huggingface.co/spaces/NeuralFalcon/Remove-Silence-From-Video"
276
- target="_blank"
277
- class="cyber-button">
278
- Try Now
279
- </a>
280
- <div class="dev-credit">
281
- Developed by <a href="https://github.com/NeuralFalconYT" target="_blank">NeuralFalconYT</a>
282
- </div>
283
- </div>
284
- </div>
285
- """)
286
  return demo
287
 
288
  import click
 
78
  # return demo
79
 
80
 
 
 
81
  def ui():
82
  theme = gr.themes.Soft(
83
  font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial", "sans-serif"]
 
117
  </p>
118
 
119
  <p style="font-size:0.9em; color:#777;">
120
+ Made by
121
+ <a href="https://github.com/NeuralFalconYT" target="_blank" style="text-decoration:none;">
122
+ NeuralFalconYT
123
  </a>
124
  </p>
125
  </div>
126
  """)
127
 
 
 
 
 
128
  with gr.Row():
129
  # LEFT: Inputs
130
  with gr.Column(scale=1):
 
155
  inputs=[audio_input, silence_threshold],
156
  outputs=[audio_output, file_output, duration_output]
157
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  return demo
160
 
161
  import click