Coloring commited on
Commit
41f94d6
1 Parent(s): 176823e

fix: flow id

Browse files
components/Flow/demos/component_options.py CHANGED
@@ -29,11 +29,12 @@ def on_data_change(_flow):
29
  flow_props = ["show_sidebar", "show_minimap", "show_controls"]
30
 
31
 
32
- def on_change(_flow_config, _bgc_variant, _bgc_color, _bgc_gap, _bgc_size,
33
- _bgc_offset, _bgc_line_width):
34
  new_props = {}
35
  new_background_props = {
36
  "variant": _bgc_variant,
 
37
  "color": _bgc_color,
38
  "gap": _bgc_gap,
39
  "size": _bgc_size,
@@ -62,6 +63,8 @@ with gr.Blocks() as demo:
62
  value="dots")
63
  with gr.Column():
64
  bgc_color = gr.ColorPicker(label="color", value="")
 
 
65
  with gr.Column():
66
  bgc_gap = gr.Slider(label="gap", value=28)
67
  with gr.Column():
@@ -89,13 +92,13 @@ with gr.Blocks() as demo:
89
  background_props=BackgroundPropsDict(variant='dots'))
90
  gr.on(triggers=[
91
  flow_config.change, bgc_variant.change, bgc_color.change,
92
- bgc_gap.change, bgc_size.change, bgc_offset.change,
93
- bgc_line_width.change
94
  ],
95
  fn=on_change,
96
  inputs=[
97
- flow_config, bgc_variant, bgc_color, bgc_gap, bgc_size,
98
- bgc_offset, bgc_line_width
99
  ],
100
  outputs=[flow])
101
  flow.data_change(fn=on_data_change, inputs=[flow])
 
29
  flow_props = ["show_sidebar", "show_minimap", "show_controls"]
30
 
31
 
32
+ def on_change(_flow_config, _bgc_variant, _bgc_color, _bgc_bg_color, _bgc_gap,
33
+ _bgc_size, _bgc_offset, _bgc_line_width):
34
  new_props = {}
35
  new_background_props = {
36
  "variant": _bgc_variant,
37
+ "bgColor": _bgc_bg_color,
38
  "color": _bgc_color,
39
  "gap": _bgc_gap,
40
  "size": _bgc_size,
 
63
  value="dots")
64
  with gr.Column():
65
  bgc_color = gr.ColorPicker(label="color", value="")
66
+ with gr.Column():
67
+ bgc_bg_color = gr.ColorPicker(label="bgColor", value="")
68
  with gr.Column():
69
  bgc_gap = gr.Slider(label="gap", value=28)
70
  with gr.Column():
 
92
  background_props=BackgroundPropsDict(variant='dots'))
93
  gr.on(triggers=[
94
  flow_config.change, bgc_variant.change, bgc_color.change,
95
+ bgc_bg_color.change, bgc_gap.change, bgc_size.change,
96
+ bgc_offset.change, bgc_line_width.change
97
  ],
98
  fn=on_change,
99
  inputs=[
100
+ flow_config, bgc_variant, bgc_color, bgc_bg_color, bgc_gap,
101
+ bgc_size, bgc_offset, bgc_line_width
102
  ],
103
  outputs=[flow])
104
  flow.data_change(fn=on_data_change, inputs=[flow])
modelscope_studio-0.2.0-py3-none-any.whl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:26497677e515ca086a7da0719cd3268516f842bab0833ebb00cd33a558b6a1bb
3
- size 11001355
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87dd50f43549a79d6ab66e18319cd72e4e041015fcecbeb16db5d7432c8c9b19
3
+ size 11001113