Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,19 +20,19 @@ with gr.Blocks(
|
|
| 20 |
secondary_hue="fuchsia",
|
| 21 |
neutral_hue="gray",
|
| 22 |
text_size="lg"
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
|
| 37 |
) as demo: # This is the correct place for 'as demo'
|
| 38 |
|
|
|
|
| 20 |
secondary_hue="fuchsia",
|
| 21 |
neutral_hue="gray",
|
| 22 |
text_size="lg"
|
| 23 |
+
.set(
|
| 24 |
+
background_fill_primary='*neutral_200',
|
| 25 |
+
background_fill_primary_dark='gray', # 👈 This sets the background in dark mode to gray
|
| 26 |
+
background_fill_secondary='neutral_100',
|
| 27 |
+
background_fill_secondary_dark='gray', # 👈 Optional: also make containers gray in dark mode
|
| 28 |
+
border_color_accent='*secondary_400',
|
| 29 |
+
border_color_accent_dark='*secondary_800',
|
| 30 |
+
color_accent='*secondary_600',
|
| 31 |
+
color_accent_soft='*secondary_200',
|
| 32 |
+
color_accent_soft_dark='*secondary_400',
|
| 33 |
+
button_primary_background_fill='*secondary_500',
|
| 34 |
+
button_primary_background_fill_dark='*secondary_600'
|
| 35 |
+
)
|
| 36 |
|
| 37 |
) as demo: # This is the correct place for 'as demo'
|
| 38 |
|