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

Update app.py

Browse files

Trying to figure out WTF gradio keeps breaking for

Files changed (1) hide show
  1. app.py +5 -6
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.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(
110
- button_primary_background_fill="*primary_300",
111
- button_primary_text_color="white",
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(