Spaces:
Runtime error
Runtime error
Commit
Β·
dd9f7ee
1
Parent(s):
161f703
slight refactor
Browse files
app.py
CHANGED
|
@@ -160,26 +160,28 @@ def gate_submission(profile: gr.OAuthProfile | None):
|
|
| 160 |
return gr.update(visible=False), gr.update(visible=True)
|
| 161 |
|
| 162 |
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
|
|
|
|
|
|
| 180 |
|
| 181 |
|
| 182 |
-
blocks = gr.Blocks(css=custom_css, theme=
|
| 183 |
with blocks:
|
| 184 |
gr.Image(
|
| 185 |
"assets/banner.png",
|
|
|
|
| 160 |
return gr.update(visible=False), gr.update(visible=True)
|
| 161 |
|
| 162 |
|
| 163 |
+
def get_theme():
|
| 164 |
+
cyber_theme = Base(
|
| 165 |
+
# neon-ish accents driven by hues (affects tabs, primary buttons, sliders, etc.)
|
| 166 |
+
primary_hue=colors.cyan, # selected tab / primary controls
|
| 167 |
+
secondary_hue=colors.pink, # secondary accents
|
| 168 |
+
neutral_hue=colors.gray, # keep neutrals subtle
|
| 169 |
+
# # techno font
|
| 170 |
+
# font=gr.themes.GoogleFont("Orbitron"),
|
| 171 |
+
font_mono=gr.themes.GoogleFont("JetBrains Mono"),
|
| 172 |
+
text_size=sizes.text_md, # keep defaults
|
| 173 |
+
spacing_size=sizes.spacing_md,
|
| 174 |
+
radius_size=sizes.radius_md,
|
| 175 |
+
).set(
|
| 176 |
+
# keep overrides minimalβdark canvas; let hues do the rest
|
| 177 |
+
body_background_fill="#0b0f14", # deep blue-black
|
| 178 |
+
background_fill_primary="#0b0f14", # panels
|
| 179 |
+
background_fill_secondary="#0e141a", # subtle contrast
|
| 180 |
+
)
|
| 181 |
+
return cyber_theme
|
| 182 |
|
| 183 |
|
| 184 |
+
blocks = gr.Blocks(css=custom_css, theme=get_theme())
|
| 185 |
with blocks:
|
| 186 |
gr.Image(
|
| 187 |
"assets/banner.png",
|