Spaces:
Running
Running
Update app.py
Browse filesChange: Replaced the incorrect .update() method with the correct .set() method chain for Gradio's theme API. The corrected code now properly chains .set() calls to configure the theme properties.
app.py
CHANGED
|
@@ -103,7 +103,7 @@ def convert_model(model_to_load, save_precision_as, epoch, global_step, referenc
|
|
| 103 |
def build_theme(theme_name, font):
|
| 104 |
"""Create accessible theme with dynamic settings."""
|
| 105 |
base = gr.themes.Base()
|
| 106 |
-
return base.
|
| 107 |
primary_hue="violet" if "dark" in theme_name else "indigo",
|
| 108 |
font=(font, "ui-sans-serif", "sans-serif"),
|
| 109 |
).set(
|
|
|
|
| 103 |
def build_theme(theme_name, font):
|
| 104 |
"""Create accessible theme with dynamic settings."""
|
| 105 |
base = gr.themes.Base()
|
| 106 |
+
return base.set(
|
| 107 |
primary_hue="violet" if "dark" in theme_name else "indigo",
|
| 108 |
font=(font, "ui-sans-serif", "sans-serif"),
|
| 109 |
).set(
|