Update app.py
Browse files
app.py
CHANGED
@@ -73,6 +73,13 @@ def main():
|
|
73 |
st.session_state.formulation_index = 0
|
74 |
if 'results' not in st.session_state:
|
75 |
st.session_state.results = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
# Afficher la problématique à noter
|
78 |
if st.session_state.problem_index < len(df):
|
@@ -85,10 +92,16 @@ def main():
|
|
85 |
|
86 |
# Menu déroulant pour la notation
|
87 |
st.write("Rate the problem on the following three criteria:")
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
# Bouton pour passer à la formulation suivante ou à la problématique suivante
|
94 |
if st.button("Next"):
|
@@ -98,9 +111,9 @@ def main():
|
|
98 |
'user': st.session_state.user,
|
99 |
'formulation': current_formulation,
|
100 |
'problematic': problem[current_formulation],
|
101 |
-
'specificity': specificity,
|
102 |
-
'clarity': clarity,
|
103 |
-
'priority': priority
|
104 |
})
|
105 |
st.session_state.formulation_index += 1
|
106 |
if st.session_state.formulation_index == 4:
|
|
|
73 |
st.session_state.formulation_index = 0
|
74 |
if 'results' not in st.session_state:
|
75 |
st.session_state.results = []
|
76 |
+
if 'specificity' not in st.session_state:
|
77 |
+
st.session_state.specificity = None
|
78 |
+
if 'clarity' not in st.session_state:
|
79 |
+
st.session_state.clarity = None
|
80 |
+
if 'priority' not in st.session_state:
|
81 |
+
st.session_state.priority = None
|
82 |
+
|
83 |
|
84 |
# Afficher la problématique à noter
|
85 |
if st.session_state.problem_index < len(df):
|
|
|
92 |
|
93 |
# Menu déroulant pour la notation
|
94 |
st.write("Rate the problem on the following three criteria:")
|
95 |
+
col1, col2, col3 = st.columns(3)
|
96 |
+
|
97 |
+
with col1:
|
98 |
+
st.session_state.specificity = st.radio("Specificity", options=[0, 1, 2, 3, 4, 5, "Don't know"], index=None)
|
99 |
+
|
100 |
+
with col2:
|
101 |
+
st.session_state.clarity = st.radio("Clarity", options=[0, 1, 2, 3, 4, 5, "Don't know"], index=None)
|
102 |
+
|
103 |
+
with col3:
|
104 |
+
st.session_state.priority = st.radio("Priority Order", options=[0, 1, 2, 3, 4, 5, "Don't know"], index=None)
|
105 |
|
106 |
# Bouton pour passer à la formulation suivante ou à la problématique suivante
|
107 |
if st.button("Next"):
|
|
|
111 |
'user': st.session_state.user,
|
112 |
'formulation': current_formulation,
|
113 |
'problematic': problem[current_formulation],
|
114 |
+
'specificity': st.session_state.specificity,
|
115 |
+
'clarity': st.session_state.clarity,
|
116 |
+
'priority': st.session_state.priority
|
117 |
})
|
118 |
st.session_state.formulation_index += 1
|
119 |
if st.session_state.formulation_index == 4:
|