Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
| 31 |
-
colors.
|
| 32 |
-
name="
|
| 33 |
-
c50="#
|
| 34 |
-
c100="#
|
| 35 |
-
c200="#
|
| 36 |
-
c300="#
|
| 37 |
-
c400="#
|
| 38 |
-
c500="#
|
| 39 |
-
c600="#
|
| 40 |
-
c700="#
|
| 41 |
-
c800="#
|
| 42 |
-
c900="#
|
| 43 |
-
c950="#
|
| 44 |
)
|
| 45 |
|
| 46 |
-
class
|
| 47 |
def __init__(
|
| 48 |
self,
|
| 49 |
*,
|
| 50 |
primary_hue: colors.Color | str = colors.gray,
|
| 51 |
-
secondary_hue: colors.Color | str = colors.
|
| 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 |
-
|
| 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=
|
| 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):
|