Spaces:
Runtime error
Runtime error
Isabel Gwara
commited on
Commit
·
cb33fad
1
Parent(s):
5c2fff1
Update app.py
Browse files
app.py
CHANGED
@@ -17,9 +17,6 @@ from sklearn import metrics
|
|
17 |
|
18 |
with open('styles.css') as f:
|
19 |
st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)
|
20 |
-
|
21 |
-
st.title('Mental Health App')
|
22 |
-
st.caption('Feeling like you might need a better coping strategy? Take the quiz to get a personalized recommendation using AI.')
|
23 |
|
24 |
|
25 |
### ------------------------------ ###
|
@@ -149,6 +146,10 @@ def get_feat():
|
|
149 |
idx = feats.index(max_val)
|
150 |
return data.columns[idx]
|
151 |
|
|
|
|
|
|
|
|
|
152 |
form = st.form('ml-inputs')
|
153 |
|
154 |
# add data labels to replace those lost via star-args
|
@@ -180,4 +181,5 @@ st.metric("Most Important Question", get_feat())
|
|
180 |
|
181 |
|
182 |
with open('info.md') as f:
|
|
|
183 |
st.markdown(f.read())
|
|
|
17 |
|
18 |
with open('styles.css') as f:
|
19 |
st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)
|
|
|
|
|
|
|
20 |
|
21 |
|
22 |
### ------------------------------ ###
|
|
|
146 |
idx = feats.index(max_val)
|
147 |
return data.columns[idx]
|
148 |
|
149 |
+
with open('info.md') as f:
|
150 |
+
st.title(f.readline())
|
151 |
+
st.caption('Take the quiz to get a personalized recommendation using AI.')
|
152 |
+
|
153 |
form = st.form('ml-inputs')
|
154 |
|
155 |
# add data labels to replace those lost via star-args
|
|
|
181 |
|
182 |
|
183 |
with open('info.md') as f:
|
184 |
+
f.readline()
|
185 |
st.markdown(f.read())
|