prakharg24 commited on
Commit
cbfa664
·
verified ·
1 Parent(s): 7e68df4

Update my_pages/ica.py

Browse files
Files changed (1) hide show
  1. my_pages/ica.py +10 -9
my_pages/ica.py CHANGED
@@ -22,20 +22,21 @@ def render():
22
  "Arbitrary": 0.34
23
  }
24
 
25
- # Which one to adjust
26
- control_choice = st.radio(
27
- "Select dimension to adjust",
28
- ["Intentional", "Conventional", "Arbitrary"],
29
- horizontal=True,
30
- label_visibility="collapsed"
31
- )
 
32
 
33
  # Current values
34
  w = st.session_state.weights
35
  current_value = w[control_choice]
36
 
37
- # Slider for selected one
38
- new_value = st.slider(control_choice, 0.0, 1.0, current_value, 0.01, label_visibility="collapsed")
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