Spaces:
Runtime error
Runtime error
gaspar-avit
commited on
Commit
·
d7259c8
1
Parent(s):
270b631
Upload app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,7 @@ def get_input_data():
|
|
106 |
with col_sex:
|
107 |
session.input_data.loc[0, 'gender'] = st.radio(
|
108 |
'Sex', ['Female', 'Male'])
|
109 |
-
st.write('<style> div[data-testid=
|
110 |
div.stRadio > div{flex-direction: row;}</style>',
|
111 |
unsafe_allow_html=True)
|
112 |
session.input_data["gender"] = session.input_data["gender"].astype(
|
@@ -164,12 +164,12 @@ def get_input_data():
|
|
164 |
# Row 5
|
165 |
col_alco, col_smk = st.columns(2)
|
166 |
with col_alco:
|
167 |
-
alco = st.radio('Alcohol intake', ['Yes', 'No'],
|
168 |
session.input_data.loc[0, 'alco'] = [1 if 'Yes' in alco else 0][0]
|
169 |
session.input_data["alco"] = session.input_data["alco"].astype(
|
170 |
bool)
|
171 |
with col_smk:
|
172 |
-
smoke = st.radio('Smoking', ['Yes', 'No'],
|
173 |
session.input_data.loc[0, 'smoke'] = [1 if 'Yes' in smoke
|
174 |
else 0][0]
|
175 |
session.input_data["smoke"] = session.input_data["smoke"].astype(
|
|
|
106 |
with col_sex:
|
107 |
session.input_data.loc[0, 'gender'] = st.radio(
|
108 |
'Sex', ['Female', 'Male'])
|
109 |
+
st.write('<style> div[data-testid=row] > div > div > div > \
|
110 |
div.stRadio > div{flex-direction: row;}</style>',
|
111 |
unsafe_allow_html=True)
|
112 |
session.input_data["gender"] = session.input_data["gender"].astype(
|
|
|
164 |
# Row 5
|
165 |
col_alco, col_smk = st.columns(2)
|
166 |
with col_alco:
|
167 |
+
alco = st.radio('Alcohol intake', ['Yes', 'No'], 1)
|
168 |
session.input_data.loc[0, 'alco'] = [1 if 'Yes' in alco else 0][0]
|
169 |
session.input_data["alco"] = session.input_data["alco"].astype(
|
170 |
bool)
|
171 |
with col_smk:
|
172 |
+
smoke = st.radio('Smoking', ['Yes', 'No'], 1)
|
173 |
session.input_data.loc[0, 'smoke'] = [1 if 'Yes' in smoke
|
174 |
else 0][0]
|
175 |
session.input_data["smoke"] = session.input_data["smoke"].astype(
|