File size: 2,640 Bytes
21df871 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# CSS for styling the interface
css = """
#col-left, #col-mid, #col-right {
margin: 0 auto;
max-width: 400px;
padding: 10px;
border-radius: 15px;
background-color: #f9f9f9;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#banner {
width: 100%;
text-align: center;
margin-bottom: 20px;
}
#run-button {
background-color: #ff4b5c;
color: white;
font-weight: bold;
padding: 10px;
border-radius: 10px;
cursor: pointer;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#footer {
text-align: center;
margin-top: 20px;
color: silver;
}
"""
css2="""
.gradio-container {
background-image: linear-gradient(#000000, #0a0a0a, #111111) !important;
color: #00ffff !important;
font-family: 'IBM Plex Sans', sans-serif !important;
}
h1 {
font-size: 6em;
color: #ff00ff;
margin-top: 30px;
margin-bottom: 30px;
text-shadow: 3px 3px 5px rgba(255, 0, 255, 0.8) !important;
}
h3 {
color: #00ff99 !important;
}
h4 {
display: inline-block;
color: #ffffff !important;
}
.wrapper img {
font-size: 98% !important;
white-space: nowrap !important;
text-align: center !important;
display: inline-block !important;
color: #ffffff !important;
}
.wrapper {
color: #ffffff !important;
}
.text-gray-500 {
color: #ff0099 !important;
}
.gr-box {
background-image: linear-gradient(#111111, #0a0a0a, #000000) !important;
border-top-color: #ff00ff !important;
border-right-color: #00ffff !important;
border-bottom-color: #ff00ff !important;
border-left-color: #00ffff !important;
}
.gr-input {
color: #00ff99 !important;
background-color: #111111 !important;
}
:root {
--neutral-100: #000000 !important;
}
.gr-button {
color: #ffffff !important;
text-shadow: 1px 1px 5px rgba(0, 255, 255, 0.8) !important;
background-image: linear-gradient(#002244, #004488) !important;
border-radius: 24px !important;
border: solid 1px !important;
border-top-color: #00ffff !important;
border-right-color: #ff00ff !important;
border-bottom-color: #ff00ff !important;
border-left-color: #00ffff !important;
padding: 6px 30px;
}
.gr-button:active {
color: #ff00ff !important;
font-size: 98% !important;
text-shadow: 0px 0px 5px rgba(255, 0, 255, 0.8) !important;
background-image: linear-gradient(#004488, #002244) !important;
border-top-color: #ff00ff !important;
border-right-color: #00ffff !important;
border-bottom-color: #00ffff !important;
border-left-color: #ff00ff !important;
}
.gr-button:hover {
filter: brightness(150%);
}
""" |