Chris commited on
Commit
0a7dde2
·
1 Parent(s): a248c93

Final 5.0.1

Browse files
Files changed (2) hide show
  1. src/__pycache__/app.cpython-310.pyc +0 -0
  2. src/app.py +52 -25
src/__pycache__/app.cpython-310.pyc CHANGED
Binary files a/src/__pycache__/app.cpython-310.pyc and b/src/__pycache__/app.cpython-310.pyc differ
 
src/app.py CHANGED
@@ -351,10 +351,10 @@ def create_interface():
351
  background-color: #ffffff !important;
352
  }
353
 
354
- /* Fix all text elements */
355
- .gradio-container *,
356
- .gradio-container *::before,
357
- .gradio-container *::after {
358
  color: #333 !important;
359
  }
360
 
@@ -371,8 +371,8 @@ def create_interface():
371
 
372
  /* Paragraphs and text content */
373
  .gradio-container p,
374
- .gradio-container div,
375
- .gradio-container span,
376
  .gradio-container label {
377
  color: #333 !important;
378
  }
@@ -385,20 +385,56 @@ def create_interface():
385
  border: 1px solid #ccc !important;
386
  }
387
 
388
- /* Buttons */
389
- .gradio-container .gr-button-primary {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
390
  background: #007bff !important;
391
  color: white !important;
392
  border: none !important;
 
 
393
  }
394
 
395
- .gradio-container .gr-button-secondary {
 
396
  background: #6c757d !important;
397
  color: white !important;
398
  border: none !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
399
  }
400
 
401
- .gradio-container button {
 
402
  color: white !important;
403
  }
404
 
@@ -456,7 +492,7 @@ def create_interface():
456
  .unit4-section h2,
457
  .unit4-section h3,
458
  .unit4-section p,
459
- .unit4-section div {
460
  color: #1565c0 !important;
461
  }
462
 
@@ -484,20 +520,6 @@ def create_interface():
484
  font-weight: 600 !important;
485
  }
486
 
487
- /* Override any white text */
488
- .gradio-container [style*="color: white"],
489
- .gradio-container [style*="color: #fff"],
490
- .gradio-container [style*="color: #ffffff"] {
491
- color: #333 !important;
492
- }
493
-
494
- /* Ensure buttons keep white text */
495
- .gradio-container button,
496
- .gradio-container .gr-button-primary,
497
- .gradio-container .gr-button-secondary {
498
- color: white !important;
499
- }
500
-
501
  /* Examples and other interactive elements */
502
  .gradio-container .gr-examples,
503
  .gradio-container .gr-file,
@@ -521,6 +543,11 @@ def create_interface():
521
  color: #333 !important;
522
  background-color: #ffffff !important;
523
  }
 
 
 
 
 
524
  """
525
 
526
  with gr.Blocks(css=css, title="GAIA Agent System", theme=gr.themes.Soft()) as interface:
 
351
  background-color: #ffffff !important;
352
  }
353
 
354
+ /* Fix all text elements EXCEPT buttons */
355
+ .gradio-container *:not(button):not(.gr-button):not(.gr-button-primary):not(.gr-button-secondary),
356
+ .gradio-container *:not(button):not(.gr-button):not(.gr-button-primary):not(.gr-button-secondary)::before,
357
+ .gradio-container *:not(button):not(.gr-button):not(.gr-button-primary):not(.gr-button-secondary)::after {
358
  color: #333 !important;
359
  }
360
 
 
371
 
372
  /* Paragraphs and text content */
373
  .gradio-container p,
374
+ .gradio-container div:not(.gr-button):not(.gr-button-primary):not(.gr-button-secondary),
375
+ .gradio-container span:not(.gr-button):not(.gr-button-primary):not(.gr-button-secondary),
376
  .gradio-container label {
377
  color: #333 !important;
378
  }
 
385
  border: 1px solid #ccc !important;
386
  }
387
 
388
+ /* Buttons - High specificity to override universal rules */
389
+ .gradio-container button,
390
+ .gradio-container .gr-button,
391
+ .gradio-container .gr-button-primary,
392
+ .gradio-container .gr-button-secondary,
393
+ .gradio-container button *,
394
+ .gradio-container .gr-button *,
395
+ .gradio-container .gr-button-primary *,
396
+ .gradio-container .gr-button-secondary * {
397
+ color: white !important;
398
+ font-weight: 500 !important;
399
+ text-shadow: none !important;
400
+ }
401
+
402
+ .gradio-container .gr-button-primary,
403
+ .gradio-container button[variant="primary"] {
404
  background: #007bff !important;
405
  color: white !important;
406
  border: none !important;
407
+ padding: 8px 16px !important;
408
+ border-radius: 6px !important;
409
  }
410
 
411
+ .gradio-container .gr-button-secondary,
412
+ .gradio-container button[variant="secondary"] {
413
  background: #6c757d !important;
414
  color: white !important;
415
  border: none !important;
416
+ padding: 8px 16px !important;
417
+ border-radius: 6px !important;
418
+ }
419
+
420
+ .gradio-container button:not([variant]) {
421
+ background: #28a745 !important;
422
+ color: white !important;
423
+ border: none !important;
424
+ padding: 8px 16px !important;
425
+ border-radius: 6px !important;
426
+ }
427
+
428
+ /* Button hover states */
429
+ .gradio-container button:hover,
430
+ .gradio-container .gr-button:hover,
431
+ .gradio-container .gr-button-primary:hover {
432
+ background: #0056b3 !important;
433
+ color: white !important;
434
  }
435
 
436
+ .gradio-container .gr-button-secondary:hover {
437
+ background: #545b62 !important;
438
  color: white !important;
439
  }
440
 
 
492
  .unit4-section h2,
493
  .unit4-section h3,
494
  .unit4-section p,
495
+ .unit4-section div:not(button):not(.gr-button) {
496
  color: #1565c0 !important;
497
  }
498
 
 
520
  font-weight: 600 !important;
521
  }
522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
523
  /* Examples and other interactive elements */
524
  .gradio-container .gr-examples,
525
  .gradio-container .gr-file,
 
543
  color: #333 !important;
544
  background-color: #ffffff !important;
545
  }
546
+
547
+ /* Override any problematic inline styles but preserve button colors */
548
+ .gradio-container [style*="color: white"]:not(button):not(.gr-button) {
549
+ color: #333 !important;
550
+ }
551
  """
552
 
553
  with gr.Blocks(css=css, title="GAIA Agent System", theme=gr.themes.Soft()) as interface: