multimodalart HF staff commited on
Commit
cb48ec9
1 Parent(s): d75def4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -66,7 +66,7 @@ def process_sketch(canvas_data, binary_matrixes):
66
  for n in range(MAX_COLORS):
67
  visibilities.append(gr.update(visible=False))
68
  colors.append(gr.update(value=f'<div class="color-bg-item" style="background-color: black"></div>'))
69
- for n in range(len(colors)-1):
70
  visibilities[n] = gr.update(visible=True)
71
  colors[n] = colors_fixed[n]
72
  return [gr.update(visible=True), binary_matrixes, *visibilities, *colors]
 
66
  for n in range(MAX_COLORS):
67
  visibilities.append(gr.update(visible=False))
68
  colors.append(gr.update(value=f'<div class="color-bg-item" style="background-color: black"></div>'))
69
+ for n in range(len(colors_fixed)):
70
  visibilities[n] = gr.update(visible=True)
71
  colors[n] = colors_fixed[n]
72
  return [gr.update(visible=True), binary_matrixes, *visibilities, *colors]