Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ dmojis = ["0️⃣", "1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣", "6
|
|
| 37 |
|
| 38 |
# Initialize user_features and n_clusters_advanced outside of any condition
|
| 39 |
user_features = [6.5, 3.5, 4.5, 1.5]
|
| 40 |
-
n_clusters_advanced =
|
| 41 |
|
| 42 |
if st.session_state.toggle:
|
| 43 |
# User Input on Sidebar
|
|
@@ -98,7 +98,7 @@ with tab1:
|
|
| 98 |
x=user_features[0],
|
| 99 |
y=user_features[1],
|
| 100 |
xshift=10,
|
| 101 |
-
text="Your Flower
|
| 102 |
font=dict(color='white', size=30),
|
| 103 |
arrowhead=2,
|
| 104 |
ax=10,
|
|
|
|
| 37 |
|
| 38 |
# Initialize user_features and n_clusters_advanced outside of any condition
|
| 39 |
user_features = [6.5, 3.5, 4.5, 1.5]
|
| 40 |
+
n_clusters_advanced = 2
|
| 41 |
|
| 42 |
if st.session_state.toggle:
|
| 43 |
# User Input on Sidebar
|
|
|
|
| 98 |
x=user_features[0],
|
| 99 |
y=user_features[1],
|
| 100 |
xshift=10,
|
| 101 |
+
text="Your Flower ("+dmojis[(predicted_cluster[0]+1)]+")",
|
| 102 |
font=dict(color='white', size=30),
|
| 103 |
arrowhead=2,
|
| 104 |
ax=10,
|