prithivMLmods commited on
Commit
44a0742
·
verified ·
1 Parent(s): fab1f74

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 PaleGreen color palette
31
- colors.pale_green = colors.Color(
32
- name="pale_green",
33
- c50="#F3FEF3",
34
- c100="#E7FDE7",
35
- c200="#D5FCD5",
36
- c300="#C4FBC4",
37
- c400="#B1FBAF",
38
- c500="#98FB98", # PaleGreen base color
39
- c600="#89E289",
40
- c700="#7AC87A",
41
- c800="#6BAF6B",
42
- c900="#5B965B",
43
- c950="#4C7D4C",
44
  )
45
 
46
- class PaleGreenTheme(Soft):
47
  def __init__(
48
  self,
49
  *,
50
  primary_hue: colors.Color | str = colors.gray,
51
- secondary_hue: colors.Color | str = colors.pale_green,
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 PaleGreenTheme(Soft):
77
  )
78
 
79
  # Instantiate the new theme
80
- pale_green_theme = PaleGreenTheme()
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=pale_green_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 SpringGreen color palette
31
+ colors.spring_green = colors.Color(
32
+ name="spring_green",
33
+ c50="#E5FFF2",
34
+ c100="#CCFFEC",
35
+ c200="#99FFD9",
36
+ c300="#66FFC6",
37
+ c400="#33FFB3",
38
+ c500="#00FF7F", # SpringGreen base color
39
+ c600="#00E672",
40
+ c700="#00CC66",
41
+ c800="#00B359",
42
+ c900="#00994D",
43
+ c950="#008040",
44
  )
45
 
46
+ class SpringGreenTheme(Soft):
47
  def __init__(
48
  self,
49
  *,
50
  primary_hue: colors.Color | str = colors.gray,
51
+ secondary_hue: colors.Color | str = colors.spring_green,
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
+ spring_green_theme = SpringGreenTheme()
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=spring_green_theme) as demo:
326
  gr.Markdown("# **Multimodal OCR**", elem_id="main-title")
327
  with gr.Row():
328
  with gr.Column(scale=2):