Duskfallcrew commited on
Commit
fb144f6
·
verified ·
1 Parent(s): f487905

Update app.py

Browse files

Change: 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.

Files changed (1) hide show
  1. app.py +1 -1
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.update(
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(