Plsek commited on
Commit
416604e
·
1 Parent(s): 673f84c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def plot_decomposed(decomposed):
50
  for i in range(N):
51
  new = np.where(decomposed == i+1, 1, 0)
52
  x0, y0 = center_of_mass(new)
53
- color = "white" if i < N//2 else "black"
54
  plt.text(y0, x0, f"{i+1}", ha="center", va="center", fontsize=15, color=color)
55
  plt.axis('off')
56
  with colC: st.pyplot()
 
50
  for i in range(N):
51
  new = np.where(decomposed == i+1, 1, 0)
52
  x0, y0 = center_of_mass(new)
53
+ color = "white" if i <= N//2 else "black"
54
  plt.text(y0, x0, f"{i+1}", ha="center", va="center", fontsize=15, color=color)
55
  plt.axis('off')
56
  with colC: st.pyplot()