Spaces:
Running
on
Zero
Running
on
Zero
update app
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 |
-
colors.
|
31 |
-
name="
|
32 |
-
c50="#
|
33 |
-
c100="#
|
34 |
-
c200="#
|
35 |
-
c300="#
|
36 |
-
c400="#
|
37 |
-
c500="#
|
38 |
-
c600="#
|
39 |
-
c700="#
|
40 |
-
c800="#
|
41 |
-
c900="#
|
42 |
-
c950="#
|
43 |
)
|
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] = (
|
@@ -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="
|
75 |
button_primary_text_color_hover="white",
|
76 |
-
button_primary_background_fill="linear-gradient(90deg, *
|
77 |
-
button_primary_background_fill_hover="linear-gradient(90deg, *
|
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 |
-
|
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=
|
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):
|