Spaces:
Running
Running
Update app.py
Browse filesTrying to figure out WTF gradio keeps breaking for
app.py
CHANGED
|
@@ -102,14 +102,13 @@ def convert_model(model_to_load, save_precision_as, epoch, global_step, referenc
|
|
| 102 |
# ---------------------- GRADIO INTERFACE ----------------------
|
| 103 |
def build_theme(theme_name, font):
|
| 104 |
"""Create accessible theme with dynamic settings."""
|
| 105 |
-
base = gr.themes.
|
| 106 |
return base.set(
|
| 107 |
primary_hue="violet" if "dark" in theme_name else "indigo",
|
| 108 |
-
font=
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
body_background_fill="*neutral_50" if "light" in theme_name else "*neutral_950"
|
| 113 |
)
|
| 114 |
|
| 115 |
with gr.Blocks(
|
|
|
|
| 102 |
# ---------------------- GRADIO INTERFACE ----------------------
|
| 103 |
def build_theme(theme_name, font):
|
| 104 |
"""Create accessible theme with dynamic settings."""
|
| 105 |
+
base = gr.themes.Default()
|
| 106 |
return base.set(
|
| 107 |
primary_hue="violet" if "dark" in theme_name else "indigo",
|
| 108 |
+
font=[font, "ui-sans-serif", "sans-serif"],
|
| 109 |
+
button_primary_background="*primary_300",
|
| 110 |
+
button_primary_text="white",
|
| 111 |
+
background_fill="*neutral_50" if "light" in theme_name else "*neutral_950"
|
|
|
|
| 112 |
)
|
| 113 |
|
| 114 |
with gr.Blocks(
|