Update my_pages/ica.py
Browse files- my_pages/ica.py +10 -9
my_pages/ica.py
CHANGED
|
@@ -22,20 +22,21 @@ def render():
|
|
| 22 |
"Arbitrary": 0.34
|
| 23 |
}
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
|
|
|
| 32 |
|
| 33 |
# Current values
|
| 34 |
w = st.session_state.weights
|
| 35 |
current_value = w[control_choice]
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
|
| 40 |
# Adjust others proportionally
|
| 41 |
diff = new_value - current_value
|
|
|
|
| 22 |
"Arbitrary": 0.34
|
| 23 |
}
|
| 24 |
|
| 25 |
+
col1, col2 = st.columns([1, 1])
|
| 26 |
+
with col1:
|
| 27 |
+
control_choice = st.radio(
|
| 28 |
+
"Select dimension to adjust",
|
| 29 |
+
["Intentional", "Conventional", "Arbitrary"],
|
| 30 |
+
horizontal=True,
|
| 31 |
+
label_visibility="collapsed"
|
| 32 |
+
)
|
| 33 |
|
| 34 |
# Current values
|
| 35 |
w = st.session_state.weights
|
| 36 |
current_value = w[control_choice]
|
| 37 |
|
| 38 |
+
with col2:
|
| 39 |
+
new_value = st.slider(control_choice, 0.0, 1.0, current_value, 0.01, label_visibility="collapsed")
|
| 40 |
|
| 41 |
# Adjust others proportionally
|
| 42 |
diff = new_value - current_value
|