prithivMLmods commited on
Commit
e321f0c
·
verified ·
1 Parent(s): b35ea58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -18
app.py CHANGED
@@ -27,28 +27,28 @@ from gradio.themes.utils import colors, fonts, sizes
27
 
28
  # --- Theme and CSS Definition ---
29
 
30
- # Define the new LightBlue color palette
31
- colors.light_blue = colors.Color(
32
- name="light_blue",
33
- c50="#F0F8FF",
34
- c100="#E0FFFF",
35
- c200="#BFEFFF",
36
- c300="#B0E0E6",
37
- c400="#87CEEB",
38
- c500="#ADD8E6", # LightBlue base color
39
- c600="#6495ED",
40
- c700="#4682B4",
41
- c800="#4169E1",
42
- c900="#0000CD",
43
- c950="#00008B",
44
  )
45
 
46
- class LightBlueTheme(Soft):
47
  def __init__(
48
  self,
49
  *,
50
  primary_hue: colors.Color | str = colors.gray,
51
- secondary_hue: colors.Color | str = colors.light_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] = (
@@ -77,7 +77,7 @@ class LightBlueTheme(Soft):
77
  )
78
 
79
  # Instantiate the new theme
80
- light_blue_theme = LightBlueTheme()
81
 
82
  # Constants for text generation
83
  MAX_MAX_NEW_TOKENS = 2048
@@ -322,7 +322,7 @@ css = """
322
  """
323
 
324
  # Create the Gradio Interface
325
- with gr.Blocks(css=css, theme=light_blue_theme) as demo:
326
  gr.Markdown("# **Multimodal OCR**", elem_id="main-title")
327
  with gr.Row():
328
  with gr.Column(scale=2):
 
27
 
28
  # --- Theme and CSS Definition ---
29
 
30
+ # Define the new Glaucous color palette
31
+ colors.glaucous = colors.Color(
32
+ name="glaucous",
33
+ c50="#F2F2F5",
34
+ c100="#E4E4E9",
35
+ c200="#C8C8D4",
36
+ c300="#ACACB8",
37
+ c400="#8F8FA3",
38
+ c500="#707090", # Glaucous base color
39
+ c600="#656582",
40
+ c700="#595973",
41
+ c800="#4E4E65",
42
+ c900="#434356",
43
+ c950="#383848",
44
  )
45
 
46
+ class GlaucousTheme(Soft):
47
  def __init__(
48
  self,
49
  *,
50
  primary_hue: colors.Color | str = colors.gray,
51
+ secondary_hue: colors.Color | str = colors.glaucous,
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] = (
 
77
  )
78
 
79
  # Instantiate the new theme
80
+ glaucous_theme = GlaucousTheme()
81
 
82
  # Constants for text generation
83
  MAX_MAX_NEW_TOKENS = 2048
 
322
  """
323
 
324
  # Create the Gradio Interface
325
+ with gr.Blocks(css=css, theme=glaucous_theme) as demo:
326
  gr.Markdown("# **Multimodal OCR**", elem_id="main-title")
327
  with gr.Row():
328
  with gr.Column(scale=2):