ginipick commited on
Commit
5163a74
·
verified ·
1 Parent(s): c942c40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -89
app.py CHANGED
@@ -262,71 +262,11 @@ examples = [
262
 
263
  # CSS styling - Fixed for better layout
264
  css = """
265
- /* Global container settings */
266
- .gradio-container {
267
- max-width: 100% !important;
268
- padding: 20px !important;
269
- }
270
-
271
- /* Main container */
272
- .container {
273
- max-width: 1600px;
274
- margin: 0 auto;
275
- padding: 20px;
276
- }
277
-
278
- /* Title styling */
279
- .main-title {
280
- text-align: center;
281
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
282
- -webkit-background-clip: text;
283
- -webkit-text-fill-color: transparent;
284
- font-size: 2.5em;
285
- font-weight: bold;
286
- margin-bottom: 10px;
287
- }
288
-
289
- .subtitle {
290
- text-align: center;
291
- color: #6b7280;
292
- margin-bottom: 30px;
293
- }
294
-
295
- /* Left column styling */
296
- .prompt-container {
297
- background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
298
- border-radius: 15px;
299
- padding: 20px;
300
- margin-bottom: 20px;
301
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
302
- }
303
-
304
- .generate-btn {
305
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
306
- color: white;
307
- font-size: 1.2em;
308
- font-weight: bold;
309
- padding: 15px 30px;
310
- border-radius: 10px;
311
- border: none;
312
- cursor: pointer;
313
- transition: all 0.3s ease;
314
- width: 100%;
315
- margin-top: 20px;
316
- }
317
-
318
- .generate-btn:hover {
319
- transform: translateY(-2px);
320
- box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
321
- }
322
-
323
  /* Right column - video output */
324
  .video-output {
325
  border-radius: 15px;
326
  overflow: hidden;
327
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
328
- background: #1a1a1a;
329
- padding: 10px;
330
  width: 100% !important;
331
  height: auto !important;
332
  min-height: 400px;
@@ -338,41 +278,23 @@ css = """
338
  height: auto !important;
339
  max-height: 600px;
340
  object-fit: contain;
 
341
  }
342
 
343
- /* Settings panels */
344
- .settings-panel {
345
- background: #f9fafb;
346
- border-radius: 15px;
347
- padding: 20px;
348
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
349
- }
350
-
351
- .slider-container {
352
- background: white;
353
- padding: 15px;
354
- border-radius: 10px;
355
- margin-bottom: 15px;
356
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
357
  }
358
 
359
- .audio-settings {
360
- background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
361
- border-radius: 10px;
362
- padding: 15px;
363
- margin-top: 10px;
364
- border-left: 4px solid #f59e0b;
365
  }
366
 
367
- /* Responsive grid layout */
368
- @media (max-width: 768px) {
369
- .gradio-container {
370
- padding: 10px !important;
371
- }
372
-
373
- .main-title {
374
- font-size: 1.8em;
375
- }
376
  }
377
  """
378
 
 
262
 
263
  # CSS styling - Fixed for better layout
264
  css = """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
265
  /* Right column - video output */
266
  .video-output {
267
  border-radius: 15px;
268
  overflow: hidden;
269
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
 
 
270
  width: 100% !important;
271
  height: auto !important;
272
  min-height: 400px;
 
278
  height: auto !important;
279
  max-height: 600px;
280
  object-fit: contain;
281
+ display: block;
282
  }
283
 
284
+ /* Remove any overlay or background from video container */
285
+ .video-output > div {
286
+ background: transparent !important;
287
+ padding: 0 !important;
 
 
 
 
 
 
 
 
 
 
288
  }
289
 
290
+ /* Remove gradio's default video player overlay */
291
+ .video-output .wrap {
292
+ background: transparent !important;
 
 
 
293
  }
294
 
295
+ /* Ensure no gray overlay on video controls */
296
+ .video-output video::-webkit-media-controls-enclosure {
297
+ background: transparent;
 
 
 
 
 
 
298
  }
299
  """
300