prithivMLmods commited on
Commit
b3f6d79
·
verified ·
1 Parent(s): 9085244

update app [experimental]

Browse files
Files changed (1) hide show
  1. app.py +18 -18
app.py CHANGED
@@ -10,27 +10,27 @@ from typing import Iterable
10
  from gradio.themes import Soft
11
  from gradio.themes.utils import colors, fonts, sizes
12
 
13
- colors.orange_red = colors.Color(
14
- name="orange_red",
15
- c50="#FFF0E5",
16
- c100="#FFE0CC",
17
- c200="#FFC299",
18
- c300="#FFA366",
19
- c400="#FF8533",
20
- c500="#FF4500",
21
- c600="#E63E00",
22
- c700="#CC3700",
23
- c800="#B33000",
24
- c900="#992900",
25
- c950="#802200",
26
  )
27
 
28
- class OrangeRedTheme(Soft):
29
  def __init__(
30
  self,
31
  *,
32
  primary_hue: colors.Color | str = colors.gray,
33
- secondary_hue: colors.Color | str = colors.orange_red,
34
  neutral_hue: colors.Color | str = colors.slate,
35
  text_size: sizes.Size | str = sizes.text_lg,
36
  font: fonts.Font | str | Iterable[fonts.Font | str] = (
@@ -51,7 +51,7 @@ class OrangeRedTheme(Soft):
51
  super().set(
52
  background_fill_primary="*primary_50",
53
  background_fill_primary_dark="*primary_900",
54
- body_background_fill="linear-gradient(135deg, *primary_200, *primary_100)",
55
  body_background_fill_dark="linear-gradient(135deg, *primary_900, *primary_800)",
56
  button_primary_text_color="white",
57
  button_primary_text_color_hover="white",
@@ -76,7 +76,7 @@ class OrangeRedTheme(Soft):
76
  block_label_background_fill="*primary_200",
77
  )
78
 
79
- orange_red_theme = OrangeRedTheme()
80
 
81
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
82
 
@@ -286,4 +286,4 @@ with gr.Blocks() as demo:
286
  )
287
 
288
  if __name__ == "__main__":
289
- demo.queue(max_size=30).launch(css=css, theme=orange_red_theme, mcp_server=True, ssr_mode=False, show_error=True)
 
10
  from gradio.themes import Soft
11
  from gradio.themes.utils import colors, fonts, sizes
12
 
13
+ colors.deep_sky_blue = colors.Color(
14
+ name="deep_sky_blue",
15
+ c50="#E0F7FF",
16
+ c100="#B3EAFF",
17
+ c200="#80DFFF",
18
+ c300="#4DD2FF",
19
+ c400="#1AC6FF",
20
+ c500="#00BFFF",
21
+ c600="#0099CC",
22
+ c700="#007399",
23
+ c800="#004C66",
24
+ c900="#002633",
25
+ c950="#00131A",
26
  )
27
 
28
+ class DeepSkyBlueTheme(Soft):
29
  def __init__(
30
  self,
31
  *,
32
  primary_hue: colors.Color | str = colors.gray,
33
+ secondary_hue: colors.Color | str = colors.deep_sky_blue,
34
  neutral_hue: colors.Color | str = colors.slate,
35
  text_size: sizes.Size | str = sizes.text_lg,
36
  font: fonts.Font | str | Iterable[fonts.Font | str] = (
 
51
  super().set(
52
  background_fill_primary="*primary_50",
53
  background_fill_primary_dark="*primary_900",
54
+ body_background_fill="linear-gradient(135deg, *primary_100, #E0F7FF)",
55
  body_background_fill_dark="linear-gradient(135deg, *primary_900, *primary_800)",
56
  button_primary_text_color="white",
57
  button_primary_text_color_hover="white",
 
76
  block_label_background_fill="*primary_200",
77
  )
78
 
79
+ deep_sky_blue_theme = DeepSkyBlueTheme()
80
 
81
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
82
 
 
286
  )
287
 
288
  if __name__ == "__main__":
289
+ demo.queue(max_size=30).launch(css=css, theme=deep_sky_blue_theme, mcp_server=True, ssr_mode=False, show_error=True)