bolajiev commited on
Commit ·
d947b38
1
Parent(s): 9d7847f
Fix theme size constants for Gradio 6 (sizes.md → sizes.spacing_md / radius_md)
Browse filesgr.themes.sizes has no 'md' attribute; the correct names are spacing_md and
radius_md. Fixes AttributeError crash on Space startup.
app.py
CHANGED
|
@@ -174,8 +174,8 @@ def _build_theme():
|
|
| 174 |
neutral_hue=gr.themes.colors.slate,
|
| 175 |
font=[gr.themes.GoogleFont("Inter"), "ui-sans-serif", "system-ui", "sans-serif"],
|
| 176 |
font_mono=[gr.themes.GoogleFont("JetBrains Mono"), "ui-monospace", "monospace"],
|
| 177 |
-
spacing_size=gr.themes.sizes.
|
| 178 |
-
radius_size=gr.themes.sizes.
|
| 179 |
).set(
|
| 180 |
# Page / body
|
| 181 |
body_background_fill="#06060e",
|
|
|
|
| 174 |
neutral_hue=gr.themes.colors.slate,
|
| 175 |
font=[gr.themes.GoogleFont("Inter"), "ui-sans-serif", "system-ui", "sans-serif"],
|
| 176 |
font_mono=[gr.themes.GoogleFont("JetBrains Mono"), "ui-monospace", "monospace"],
|
| 177 |
+
spacing_size=gr.themes.sizes.spacing_md,
|
| 178 |
+
radius_size=gr.themes.sizes.radius_md,
|
| 179 |
).set(
|
| 180 |
# Page / body
|
| 181 |
body_background_fill="#06060e",
|