Update app.py
Browse files
app.py
CHANGED
|
@@ -102,27 +102,6 @@ HF_TEXTGEN_TOKEN = bool(os.getenv("HF_READ_TOKEN") or os.getenv("HF_TOKEN"))
|
|
| 102 |
|
| 103 |
# CSS copied from prior app.py to preserve exact look-and-feel
|
| 104 |
CSS_STYLES = """
|
| 105 |
-
/* App background: subtle top-left glow, light coming from one side */
|
| 106 |
-
.gradio-container {
|
| 107 |
-
/* Keep existing theme background but add a faint glow overlay */
|
| 108 |
-
background-image:
|
| 109 |
-
radial-gradient(1200px 800px at 0% 0%, rgba(99, 102, 241, 0.10), rgba(99, 102, 241, 0.00) 70%),
|
| 110 |
-
radial-gradient(700px 500px at 100% 0%, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.00) 70%);
|
| 111 |
-
background-attachment: fixed, fixed; /* gentle parallax feel on scroll */
|
| 112 |
-
background-repeat: no-repeat;
|
| 113 |
-
background-blend-mode: screen; /* subtle light effect over dark themes */
|
| 114 |
-
}
|
| 115 |
-
|
| 116 |
-
@media (prefers-color-scheme: light) {
|
| 117 |
-
.gradio-container {
|
| 118 |
-
/* Slightly softer in light mode */
|
| 119 |
-
background-image:
|
| 120 |
-
radial-gradient(1200px 800px at 0% 0%, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.00) 70%),
|
| 121 |
-
radial-gradient(700px 500px at 100% 0%, rgba(59, 130, 246, 0.04), rgba(59, 130, 246, 0.00) 70%);
|
| 122 |
-
background-blend-mode: multiply; /* keep gentle tint over light base */
|
| 123 |
-
}
|
| 124 |
-
}
|
| 125 |
-
|
| 126 |
/* Style only the top-level app title to avoid affecting headings elsewhere */
|
| 127 |
.app-title {
|
| 128 |
text-align: center;
|
|
|
|
| 102 |
|
| 103 |
# CSS copied from prior app.py to preserve exact look-and-feel
|
| 104 |
CSS_STYLES = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
/* Style only the top-level app title to avoid affecting headings elsewhere */
|
| 106 |
.app-title {
|
| 107 |
text-align: center;
|