Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -105,6 +105,7 @@ st.title("ShelterSearch")
|
|
105 |
if not st.session_state.form_submitted:
|
106 |
st.write("Fill out this form")
|
107 |
|
|
|
108 |
zipcodes = {
|
109 |
'San Francisco': ['94101', '94102', '94103', '94104', '94105', '94107', '94108', '94109', '94110', '94111', '94112', '94114', '94115', '94116', '94117', '94118', '94119', '94120', '94121', '94122', '94123', '94124', '94125', '94126', '94127', '94128', '94129', '94130', '94131', '94132', '94133', '94134', '94140', '94141', '94142', '94146', '94147', '94157', '94159', '94164', '94165', '94166', '94167', '94168', '94169', '94170', '94172', '94188'],
|
110 |
'Oakland': ['94601', '94602', '94603', '94604', '94605', '94606', '94607', '94608', '94609', '94610', '94611', '94612', '94613', '94614', '94615', '94617', '94618', '94619', '94620', '94621', '94623', '94624', '94661', '94662'],
|
@@ -112,7 +113,7 @@ if not st.session_state.form_submitted:
|
|
112 |
}
|
113 |
|
114 |
city = st.selectbox("City", ['San Francisco', 'Oakland', 'Berkeley'])
|
115 |
-
zipcode = st.selectbox("Zipcode", zipcodes[city])
|
116 |
|
117 |
sex = st.radio("Sex", ["Male", "Female", "Other"])
|
118 |
lgbtq = st.radio("Do you identify as LGBTQ+ (some shelters serve this community specifically)", ["No", "Yes"])
|
@@ -212,6 +213,8 @@ else:
|
|
212 |
shelter = shelters[st.session_state.shelter_index]
|
213 |
|
214 |
st.header(f"{shelter['Organization Name']}: {shelter['Program Name']}")
|
|
|
|
|
215 |
|
216 |
# Create two columns
|
217 |
col1, col2 = st.columns([1,1])
|
|
|
105 |
if not st.session_state.form_submitted:
|
106 |
st.write("Fill out this form")
|
107 |
|
108 |
+
# should be updated manually annually - use zipcodebase API
|
109 |
zipcodes = {
|
110 |
'San Francisco': ['94101', '94102', '94103', '94104', '94105', '94107', '94108', '94109', '94110', '94111', '94112', '94114', '94115', '94116', '94117', '94118', '94119', '94120', '94121', '94122', '94123', '94124', '94125', '94126', '94127', '94128', '94129', '94130', '94131', '94132', '94133', '94134', '94140', '94141', '94142', '94146', '94147', '94157', '94159', '94164', '94165', '94166', '94167', '94168', '94169', '94170', '94172', '94188'],
|
111 |
'Oakland': ['94601', '94602', '94603', '94604', '94605', '94606', '94607', '94608', '94609', '94610', '94611', '94612', '94613', '94614', '94615', '94617', '94618', '94619', '94620', '94621', '94623', '94624', '94661', '94662'],
|
|
|
113 |
}
|
114 |
|
115 |
city = st.selectbox("City", ['San Francisco', 'Oakland', 'Berkeley'])
|
116 |
+
zipcode = st.selectbox("Zipcode", ['Unsure'] + zipcodes[city])
|
117 |
|
118 |
sex = st.radio("Sex", ["Male", "Female", "Other"])
|
119 |
lgbtq = st.radio("Do you identify as LGBTQ+ (some shelters serve this community specifically)", ["No", "Yes"])
|
|
|
213 |
shelter = shelters[st.session_state.shelter_index]
|
214 |
|
215 |
st.header(f"{shelter['Organization Name']}: {shelter['Program Name']}")
|
216 |
+
st.json(data)
|
217 |
+
st.table(shelters)
|
218 |
|
219 |
# Create two columns
|
220 |
col1, col2 = st.columns([1,1])
|