Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,6 +33,7 @@ toggle_button = st.button("Toggle Sidebar")
|
|
| 33 |
if toggle_button:
|
| 34 |
st.session_state.toggle = not st.session_state.toggle
|
| 35 |
|
|
|
|
| 36 |
|
| 37 |
# Initialize user_features and n_clusters_advanced outside of any condition
|
| 38 |
user_features = [6.5, 3.5, 4.5, 1.5]
|
|
@@ -109,7 +110,7 @@ with tab1:
|
|
| 109 |
fig.add_annotation(
|
| 110 |
x=coord[0],
|
| 111 |
y=coord[1],
|
| 112 |
-
text="Group
|
| 113 |
showarrow=True,
|
| 114 |
font=dict(color='white', size=25)
|
| 115 |
)
|
|
|
|
| 33 |
if toggle_button:
|
| 34 |
st.session_state.toggle = not st.session_state.toggle
|
| 35 |
|
| 36 |
+
dmojis = ["0️⃣", "1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣", "6️⃣", "7️⃣", "8️⃣", "9️⃣"]
|
| 37 |
|
| 38 |
# Initialize user_features and n_clusters_advanced outside of any condition
|
| 39 |
user_features = [6.5, 3.5, 4.5, 1.5]
|
|
|
|
| 110 |
fig.add_annotation(
|
| 111 |
x=coord[0],
|
| 112 |
y=coord[1],
|
| 113 |
+
text="Group "+dmojis[i+1],
|
| 114 |
showarrow=True,
|
| 115 |
font=dict(color='white', size=25)
|
| 116 |
)
|