shubhamofbce commited on
Commit
2612183
·
verified ·
1 Parent(s): 2179799

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -491,7 +491,7 @@ with gr.Blocks( # noqa: SIM117
491
  + mono_is_google
492
  + theme_var_input
493
  )
494
-
495
  def load_theme(theme_name):
496
  theme = [theme for theme in themes if theme.__name__ == theme_name][0]
497
 
@@ -541,6 +541,7 @@ with gr.Blocks( # noqa: SIM117
541
  def generate_theme_code(
542
  base_theme, final_theme, core_variables, final_main_fonts, final_mono_fonts
543
  ):
 
544
  base_theme_name = base_theme
545
  base_theme = [theme for theme in themes if theme.__name__ == base_theme][
546
  0
@@ -864,7 +865,9 @@ with gr.Blocks(theme=theme) as demo:
864
 
865
  def load_color(color_name):
866
  color = [color for color in colors if color.name == color_name][0]
867
- return [getattr(color, f"c{i}") for i in palette_range]
 
 
868
 
869
  attach_rerender(
870
  primary_hue.select(
 
491
  + mono_is_google
492
  + theme_var_input
493
  )
494
+
495
  def load_theme(theme_name):
496
  theme = [theme for theme in themes if theme.__name__ == theme_name][0]
497
 
 
541
  def generate_theme_code(
542
  base_theme, final_theme, core_variables, final_main_fonts, final_mono_fonts
543
  ):
544
+ print(f"inside generate theme code base_theme is {base_theme}, final_theme is {final_theme}, core_variables is {core_variables}")
545
  base_theme_name = base_theme
546
  base_theme = [theme for theme in themes if theme.__name__ == base_theme][
547
  0
 
865
 
866
  def load_color(color_name):
867
  color = [color for color in colors if color.name == color_name][0]
868
+ val = [getattr(color, f"c{i}") for i in palette_range]
869
+ print("val inside load vcolor", val, color_name)
870
+ return val
871
 
872
  attach_rerender(
873
  primary_hue.select(