Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -579,10 +579,28 @@ function refresh() {
|
|
| 579 |
"""
|
| 580 |
|
| 581 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 582 |
custom_theme = gr.themes.Soft(
|
| 583 |
-
primary_hue=
|
| 584 |
-
secondary_hue=
|
| 585 |
-
neutral_hue=
|
| 586 |
)
|
| 587 |
|
| 588 |
# Create the Gradio interface with light theme
|
|
|
|
| 579 |
"""
|
| 580 |
|
| 581 |
|
| 582 |
+
from gradio.themes.utils import colors
|
| 583 |
+
|
| 584 |
+
# Define your custom yellow hue
|
| 585 |
+
custom_yellow = colors.Color(
|
| 586 |
+
name="custom_yellow",
|
| 587 |
+
c50="#EFFE8A", # Your color
|
| 588 |
+
c100="#f5f0b3", # Slightly darker
|
| 589 |
+
c200="#ebe6a6", # Darker
|
| 590 |
+
c300="#e1dc99", # Darker
|
| 591 |
+
c400="#d7d28c", # Darker
|
| 592 |
+
c500="#cdc87f", # Darker
|
| 593 |
+
c600="#c3be72", # Darker
|
| 594 |
+
c700="#b9b465", # Darker
|
| 595 |
+
c800="#afaa58", # Darker
|
| 596 |
+
c900="#a5a04b", # Darkest
|
| 597 |
+
)
|
| 598 |
+
|
| 599 |
+
# Use the custom hue
|
| 600 |
custom_theme = gr.themes.Soft(
|
| 601 |
+
primary_hue=custom_yellow,
|
| 602 |
+
secondary_hue=colors.gray,
|
| 603 |
+
neutral_hue=colors.gray,
|
| 604 |
)
|
| 605 |
|
| 606 |
# Create the Gradio interface with light theme
|