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

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -621,7 +621,7 @@ with gr.Blocks( # noqa: SIM117
621
  if diff:
622
  print("final attr values before update-->", final_attr_values)
623
  new_final_attr_values = {}
624
-
625
  for key, val in final_attr_values.items():
626
  if key.startswith(("primary_", "secondary_", "neutral_")):
627
  color_key = "c" + key.split("_")[-1]
@@ -765,7 +765,8 @@ with gr.Blocks(theme=theme) as demo:
765
  remaining_args = args[
766
  6 + 3 * len(palette_range) + 3 * len(size_range) + 16 :
767
  ]
768
-
 
769
  final_primary_color = gr.themes.Color(*primary_hues)
770
  final_secondary_color = gr.themes.Color(*secondary_hues)
771
  final_neutral_color = gr.themes.Color(*neutral_hues)
@@ -881,6 +882,7 @@ with gr.Blocks(theme=theme) as demo:
881
  ).then
882
  )
883
  for hue_set in (primary_hues, secondary_hues, neutral_hues):
 
884
  for hue in hue_set:
885
  attach_rerender(hue.blur)
886
 
 
621
  if diff:
622
  print("final attr values before update-->", final_attr_values)
623
  new_final_attr_values = {}
624
+ #
625
  for key, val in final_attr_values.items():
626
  if key.startswith(("primary_", "secondary_", "neutral_")):
627
  color_key = "c" + key.split("_")[-1]
 
765
  remaining_args = args[
766
  6 + 3 * len(palette_range) + 3 * len(size_range) + 16 :
767
  ]
768
+ print("primary_hues", primary_hues)
769
+ print("secondary_hues", secondary_hues)
770
  final_primary_color = gr.themes.Color(*primary_hues)
771
  final_secondary_color = gr.themes.Color(*secondary_hues)
772
  final_neutral_color = gr.themes.Color(*neutral_hues)
 
882
  ).then
883
  )
884
  for hue_set in (primary_hues, secondary_hues, neutral_hues):
885
+ print(hue_set, "hue_set in function")
886
  for hue in hue_set:
887
  attach_rerender(hue.blur)
888