Jan Mühlnikel commited on
Commit
52b7f30
1 Parent(s): 86f3100

added some filter descriptions

Browse files
Files changed (1) hide show
  1. similarity_page.py +14 -7
similarity_page.py CHANGED
@@ -137,11 +137,18 @@ embeddings = load_embeddings_and_index()
137
 
138
  def show_multi_matching_page():
139
  #st.write(f"Current RAM usage of this app: {get_process_memory():.2f} MB")
140
- st.write("Similarities")
141
 
142
  st.session_state.crs5_option_disabled = True
143
- col1, col2 = st.columns([1, 1])
144
  with col1:
 
 
 
 
 
 
 
 
145
  # CRS 3 SELECTION
146
  crs3_option = st.multiselect(
147
  'CRS 3',
@@ -173,10 +180,10 @@ def show_multi_matching_page():
173
  options = SDG_NAMES[:-1],
174
  )
175
 
176
- different_orga_checkbox = st.checkbox("Only matches between different organizations")
177
- filterd_country_only_checkbox = st.checkbox("Only matches between filtered countries")
178
 
179
- with col2:
180
  # COUNTRY SELECTION
181
  country_option = st.multiselect(
182
  'Country / Countries',
@@ -195,8 +202,8 @@ def show_multi_matching_page():
195
  placeholder="All"
196
  )
197
 
198
- # SEARCH BOX
199
- query = st.text_input("Enter your search query:")
200
 
201
 
202
  # CRS CODE LIST
 
137
 
138
  def show_multi_matching_page():
139
  #st.write(f"Current RAM usage of this app: {get_process_memory():.2f} MB")
 
140
 
141
  st.session_state.crs5_option_disabled = True
142
+ col1, col2, col3 = st.columns([5, 1, 5])
143
  with col1:
144
+ st.subheader("Sector Filter:")
145
+ st.caption("""
146
+ Sector Filters must be applied to see results. The CRS5 and CRS3 classifications organize development aid into categories,
147
+ with the 5-digit providing more specific detail within the broader 3-digit categories.
148
+ The SDGs are 17 United Nations goals aimed at global sustainability, peace, and prosperity by 2030.
149
+ """)
150
+
151
+
152
  # CRS 3 SELECTION
153
  crs3_option = st.multiselect(
154
  'CRS 3',
 
180
  options = SDG_NAMES[:-1],
181
  )
182
 
183
+ # SEARCH BOX
184
+ query = st.text_input("Enter your search query:")
185
 
186
+ with col3:
187
  # COUNTRY SELECTION
188
  country_option = st.multiselect(
189
  'Country / Countries',
 
202
  placeholder="All"
203
  )
204
 
205
+ different_orga_checkbox = st.checkbox("Only matches between different organizations")
206
+ filterd_country_only_checkbox = st.checkbox("Only matches between filtered countries")
207
 
208
 
209
  # CRS CODE LIST