Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,27 +30,27 @@ from typing import Iterable
|
|
| 30 |
from gradio.themes import Soft
|
| 31 |
from gradio.themes.utils import colors, fonts, sizes
|
| 32 |
|
| 33 |
-
colors.
|
| 34 |
-
name="
|
| 35 |
-
c50="#
|
| 36 |
-
c100="#
|
| 37 |
-
c200="#
|
| 38 |
-
c300="#
|
| 39 |
-
c400="#
|
| 40 |
-
c500="#
|
| 41 |
-
c600="#
|
| 42 |
-
c700="#
|
| 43 |
-
c800="#
|
| 44 |
-
c900="#
|
| 45 |
-
c950="#
|
| 46 |
)
|
| 47 |
|
| 48 |
-
class
|
| 49 |
def __init__(
|
| 50 |
self,
|
| 51 |
*,
|
| 52 |
primary_hue: colors.Color | str = colors.gray,
|
| 53 |
-
secondary_hue: colors.Color | str = colors.
|
| 54 |
neutral_hue: colors.Color | str = colors.slate,
|
| 55 |
text_size: sizes.Size | str = sizes.text_lg,
|
| 56 |
font: fonts.Font | str | Iterable[fonts.Font | str] = (
|
|
@@ -77,8 +77,8 @@ class SteelBlueTheme(Soft):
|
|
| 77 |
button_primary_text_color_hover="white",
|
| 78 |
button_primary_background_fill="linear-gradient(90deg, *secondary_500, *secondary_600)",
|
| 79 |
button_primary_background_fill_hover="linear-gradient(90deg, *secondary_600, *secondary_700)",
|
| 80 |
-
button_primary_background_fill_dark="linear-gradient(90deg, *secondary_600, *
|
| 81 |
-
button_primary_background_fill_hover_dark="linear-gradient(90deg, *secondary_500, *
|
| 82 |
button_secondary_text_color="black",
|
| 83 |
button_secondary_text_color_hover="white",
|
| 84 |
button_secondary_background_fill="linear-gradient(90deg, *primary_300, *primary_300)",
|
|
@@ -96,7 +96,7 @@ class SteelBlueTheme(Soft):
|
|
| 96 |
block_label_background_fill="*primary_200",
|
| 97 |
)
|
| 98 |
|
| 99 |
-
|
| 100 |
|
| 101 |
loras = [
|
| 102 |
{
|
|
@@ -417,4 +417,4 @@ with gr.Blocks(delete_cache=(60, 60)) as demo:
|
|
| 417 |
)
|
| 418 |
|
| 419 |
demo.queue()
|
| 420 |
-
demo.launch(theme=
|
|
|
|
| 30 |
from gradio.themes import Soft
|
| 31 |
from gradio.themes.utils import colors, fonts, sizes
|
| 32 |
|
| 33 |
+
colors.orange_red = colors.Color(
|
| 34 |
+
name="orange_red",
|
| 35 |
+
c50="#FFF0E5",
|
| 36 |
+
c100="#FFE0CC",
|
| 37 |
+
c200="#FFC299",
|
| 38 |
+
c300="#FFA366",
|
| 39 |
+
c400="#FF8533",
|
| 40 |
+
c500="#FF4500",
|
| 41 |
+
c600="#E63E00",
|
| 42 |
+
c700="#CC3700",
|
| 43 |
+
c800="#B33000",
|
| 44 |
+
c900="#992900",
|
| 45 |
+
c950="#802200",
|
| 46 |
)
|
| 47 |
|
| 48 |
+
class OrangeRedTheme(Soft):
|
| 49 |
def __init__(
|
| 50 |
self,
|
| 51 |
*,
|
| 52 |
primary_hue: colors.Color | str = colors.gray,
|
| 53 |
+
secondary_hue: colors.Color | str = colors.orange_red, # Use the new color
|
| 54 |
neutral_hue: colors.Color | str = colors.slate,
|
| 55 |
text_size: sizes.Size | str = sizes.text_lg,
|
| 56 |
font: fonts.Font | str | Iterable[fonts.Font | str] = (
|
|
|
|
| 77 |
button_primary_text_color_hover="white",
|
| 78 |
button_primary_background_fill="linear-gradient(90deg, *secondary_500, *secondary_600)",
|
| 79 |
button_primary_background_fill_hover="linear-gradient(90deg, *secondary_600, *secondary_700)",
|
| 80 |
+
button_primary_background_fill_dark="linear-gradient(90deg, *secondary_600, *secondary_700)",
|
| 81 |
+
button_primary_background_fill_hover_dark="linear-gradient(90deg, *secondary_500, *secondary_600)",
|
| 82 |
button_secondary_text_color="black",
|
| 83 |
button_secondary_text_color_hover="white",
|
| 84 |
button_secondary_background_fill="linear-gradient(90deg, *primary_300, *primary_300)",
|
|
|
|
| 96 |
block_label_background_fill="*primary_200",
|
| 97 |
)
|
| 98 |
|
| 99 |
+
orange_red_theme = OrangeRedTheme()
|
| 100 |
|
| 101 |
loras = [
|
| 102 |
{
|
|
|
|
| 417 |
)
|
| 418 |
|
| 419 |
demo.queue()
|
| 420 |
+
demo.launch(theme=orange_red_theme, css=css, mcp_server=True, ssr_mode=False, show_error=True)
|