prithivMLmods commited on
Commit
9d36b05
·
verified ·
1 Parent(s): ad59edd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -19
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.steel_blue = colors.Color(
34
- name="steel_blue",
35
- c50="#EBF3F8",
36
- c100="#D3E5F0",
37
- c200="#A8CCE1",
38
- c300="#7DB3D2",
39
- c400="#529AC3",
40
- c500="#4682B4",
41
- c600="#3E72A0",
42
- c700="#36638C",
43
- c800="#2E5378",
44
- c900="#264364",
45
- c950="#1E3450",
46
  )
47
 
48
- class SteelBlueTheme(Soft):
49
  def __init__(
50
  self,
51
  *,
52
  primary_hue: colors.Color | str = colors.gray,
53
- secondary_hue: colors.Color | str = colors.steel_blue,
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, *secondary_800)",
81
- button_primary_background_fill_hover_dark="linear-gradient(90deg, *secondary_500, *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
- steel_blue_theme = SteelBlueTheme()
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=steel_blue_theme, css=css, mcp_server=True, ssr_mode=False, show_error=True)
 
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)