prithivMLmods commited on
Commit
db025f4
·
verified ·
1 Parent(s): 44f6833

update app

Browse files
Files changed (1) hide show
  1. app.py +20 -20
app.py CHANGED
@@ -27,28 +27,28 @@ from gradio.themes.utils import colors, fonts, sizes
27
 
28
  # --- Theme and CSS Definition ---
29
 
30
- colors.cyan = colors.Color(
31
- name="cyan",
32
- c50="#E0FFFF",
33
- c100="#B3FFFF",
34
- c200="#80FFFF",
35
- c300="#4DFFFF",
36
- c400="#1AFFFF",
37
- c500="#00FFFF", # Cyan base color
38
- c600="#00E6E6",
39
- c700="#00CCCC",
40
- c800="#00B3B3",
41
- c900="#009999",
42
- c950="#008080",
43
  )
44
 
45
 
46
- class CyanTheme(Soft):
47
  def __init__(
48
  self,
49
  *,
50
  primary_hue: colors.Color | str = colors.gray,
51
- secondary_hue: colors.Color | str = colors.cyan,
52
  neutral_hue: colors.Color | str = colors.slate,
53
  text_size: sizes.Size | str = sizes.text_lg,
54
  font: fonts.Font | str | Iterable[fonts.Font | str] = (
@@ -71,10 +71,10 @@ class CyanTheme(Soft):
71
  background_fill_primary_dark="*primary_900",
72
  body_background_fill="linear-gradient(135deg, *primary_200, *primary_100)",
73
  body_background_fill_dark="linear-gradient(135deg, *primary_900, *primary_800)",
74
- button_primary_text_color="black",
75
  button_primary_text_color_hover="white",
76
- button_primary_background_fill="linear-gradient(90deg, *secondary_400, *secondary_500)",
77
- button_primary_background_fill_hover="linear-gradient(90deg, *secondary_500, *secondary_600)",
78
  button_primary_background_fill_dark="linear-gradient(90deg, *secondary_600, *secondary_800)",
79
  button_primary_background_fill_hover_dark="linear-gradient(90deg, *secondary_500, *secondary_500)",
80
  button_secondary_text_color="black",
@@ -94,7 +94,7 @@ class CyanTheme(Soft):
94
  block_label_background_fill="*primary_200",
95
  )
96
 
97
- cyan_theme = CyanTheme()
98
 
99
  MAX_MAX_NEW_TOKENS = 4096
100
  DEFAULT_MAX_NEW_TOKENS = 1024
@@ -294,7 +294,7 @@ css = """
294
  """
295
 
296
  # Create the Gradio Interface
297
- with gr.Blocks(css=css, theme=cyan_theme) as demo:
298
  gr.Markdown("# **Qwen3-VL-Outpost**", elem_id="main-title")
299
  with gr.Row():
300
  with gr.Column(scale=2):
 
27
 
28
  # --- Theme and CSS Definition ---
29
 
30
+ colors.steel_blue = colors.Color(
31
+ name="steel_blue",
32
+ c50="#EBF3F8",
33
+ c100="#D3E5F0",
34
+ c200="#A8CCE1",
35
+ c300="#7DB3D2",
36
+ c400="#529AC3",
37
+ c500="#4682B4", # SteelBlue base color
38
+ c600="#3E72A0",
39
+ c700="#36638C",
40
+ c800="#2E5378",
41
+ c900="#264364",
42
+ c950="#1E3450",
43
  )
44
 
45
 
46
+ class SteelBlueTheme(Soft):
47
  def __init__(
48
  self,
49
  *,
50
  primary_hue: colors.Color | str = colors.gray,
51
+ secondary_hue: colors.Color | str = colors.steel_blue,
52
  neutral_hue: colors.Color | str = colors.slate,
53
  text_size: sizes.Size | str = sizes.text_lg,
54
  font: fonts.Font | str | Iterable[fonts.Font | str] = (
 
71
  background_fill_primary_dark="*primary_900",
72
  body_background_fill="linear-gradient(135deg, *primary_200, *primary_100)",
73
  body_background_fill_dark="linear-gradient(135deg, *primary_900, *primary_800)",
74
+ button_primary_text_color="white",
75
  button_primary_text_color_hover="white",
76
+ button_primary_background_fill="linear-gradient(90deg, *secondary_500, *secondary_600)",
77
+ button_primary_background_fill_hover="linear-gradient(90deg, *secondary_600, *secondary_700)",
78
  button_primary_background_fill_dark="linear-gradient(90deg, *secondary_600, *secondary_800)",
79
  button_primary_background_fill_hover_dark="linear-gradient(90deg, *secondary_500, *secondary_500)",
80
  button_secondary_text_color="black",
 
94
  block_label_background_fill="*primary_200",
95
  )
96
 
97
+ steel_blue_theme = SteelBlueTheme()
98
 
99
  MAX_MAX_NEW_TOKENS = 4096
100
  DEFAULT_MAX_NEW_TOKENS = 1024
 
294
  """
295
 
296
  # Create the Gradio Interface
297
+ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
298
  gr.Markdown("# **Qwen3-VL-Outpost**", elem_id="main-title")
299
  with gr.Row():
300
  with gr.Column(scale=2):