TejAndrewsACC commited on
Commit
1146c28
·
verified ·
1 Parent(s): e959323

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +102 -1
app.py CHANGED
@@ -1624,7 +1624,107 @@ print("Transformer Output:", transformer_output)
1624
 
1625
 
1626
 
1627
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1628
 
1629
 
1630
 
@@ -1675,6 +1775,7 @@ demo = gr.ChatInterface(
1675
  placeholder="👤Hi, I'm ACC Emulect👤",
1676
  ),
1677
  theme="TejAndrewsACC/Emulect",
 
1678
  )
1679
 
1680
  if __name__ == "__main__":
 
1624
 
1625
 
1626
 
1627
+ css = """
1628
+ #chat-interface {
1629
+ animation: pulse 1.5s infinite, ripple 2s infinite, glass 3s infinite alternate;
1630
+ }
1631
+ @keyframes pulse {
1632
+ 0% { transform: scale(1); opacity: 1; }
1633
+ 25% { transform: scale(1.05); opacity: 0.9; }
1634
+ 50% { transform: scale(1); opacity: 1; }
1635
+ 75% { transform: scale(1.05); opacity: 0.9; }
1636
+ 100% { transform: scale(1); opacity: 1; }
1637
+ }
1638
+ @keyframes ripple {
1639
+ 0% {
1640
+ transform: scale(1);
1641
+ box-shadow: 0 0 0 0 rgba(0, 150, 255, 0.6);
1642
+ }
1643
+ 50% {
1644
+ transform: scale(1.2);
1645
+ box-shadow: 0 0 30px 20px rgba(0, 150, 255, 0.8);
1646
+ }
1647
+ 100% {
1648
+ transform: scale(1);
1649
+ box-shadow: 0 0 0 0 rgba(0, 150, 255, 0.6);
1650
+ }
1651
+ }
1652
+ @keyframes glass {
1653
+ 0% { background-color: rgba(0, 102, 255, 0.5); border-radius: 15px; }
1654
+ 25% { background-color: rgba(0, 150, 255, 0.7); border-radius: 20px; }
1655
+ 50% { background-color: rgba(0, 200, 255, 1); border-radius: 25px; }
1656
+ 75% { background-color: rgba(0, 150, 255, 0.7); border-radius: 30px; }
1657
+ 100% { background-color: rgba(0, 102, 255, 0.5); border-radius: 35px; }
1658
+ }
1659
+ body {
1660
+ background-color: #001f2d;
1661
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
1662
+ color: #fff;
1663
+ }
1664
+ .gradio-container {
1665
+ backdrop-filter: blur(10px);
1666
+ border-radius: 20px;
1667
+ padding: 20px;
1668
+ box-shadow: 0px 0px 30px rgba(0, 102, 255, 0.5);
1669
+ background: rgba(0, 0, 0, 0.5);
1670
+ transition: background 1s, border-radius 1s;
1671
+ position: relative;
1672
+ }
1673
+ .gradio-container::before {
1674
+ content: "";
1675
+ position: absolute;
1676
+ top: 0;
1677
+ left: 0;
1678
+ right: 0;
1679
+ bottom: 0;
1680
+ border: 2px solid rgba(0, 150, 255, 0.8);
1681
+ border-radius: 20px;
1682
+ z-index: -1;
1683
+ box-shadow: 0 0 20px 5px rgba(0, 150, 255, 0.7);
1684
+ }
1685
+ .gradio-input {
1686
+ background-color: rgba(0, 102, 255, 0.3);
1687
+ border: 2px solid rgba(0, 102, 255, 0.6);
1688
+ border-radius: 10px;
1689
+ color: #fff;
1690
+ font-size: 16px;
1691
+ transition: background-color 0.5s, border 0.5s;
1692
+ }
1693
+ .gradio-input:focus {
1694
+ background-color: rgba(0, 102, 255, 0.5);
1695
+ border: 2px solid rgba(0, 150, 255, 0.8);
1696
+ }
1697
+ .gradio-button {
1698
+ background: rgba(0, 102, 255, 0.6);
1699
+ border: 2px solid rgba(0, 102, 255, 1);
1700
+ border-radius: 12px;
1701
+ color: #fff;
1702
+ font-size: 18px;
1703
+ transition: background 0.3s, transform 0.3s;
1704
+ }
1705
+ .gradio-button:hover {
1706
+ background: rgba(0, 150, 255, 1);
1707
+ transform: scale(1.05);
1708
+ }
1709
+ .gradio-button:active {
1710
+ background: rgba(0, 200, 255, 1);
1711
+ transform: scale(0.95);
1712
+ }
1713
+ .gradio-slider {
1714
+ color: #fff;
1715
+ }
1716
+ .gradio-slider .slider-container {
1717
+ background: rgba(0, 102, 255, 0.3);
1718
+ border-radius: 8px;
1719
+ border: 1px solid rgba(0, 102, 255, 0.5);
1720
+ }
1721
+ .gradio-slider .slider-container .gradio-slider__track {
1722
+ background: rgba(0, 150, 255, 0.5);
1723
+ }
1724
+ .gradio-slider .slider-container .gradio-slider__thumb {
1725
+ background-color: rgba(0, 200, 255, 1);
1726
+ }
1727
+ """
1728
 
1729
 
1730
 
 
1775
  placeholder="👤Hi, I'm ACC Emulect👤",
1776
  ),
1777
  theme="TejAndrewsACC/Emulect",
1778
+ css=css
1779
  )
1780
 
1781
  if __name__ == "__main__":