cassiebuhler commited on
Commit
b834a5d
Β·
1 Parent(s): b4f621d

adding 30x30 context + help tab.

Browse files
Files changed (1) hide show
  1. app/app.py +12 -9
app/app.py CHANGED
@@ -115,17 +115,11 @@ st.markdown(
115
  unsafe_allow_html=True,
116
  )
117
 
118
- # st.header("CA 30x30 Planning & Assessment Prototype")
119
  st.markdown("<h2>CA 30x30 Planning & Assessment Prototype</h2>", unsafe_allow_html=True)
120
 
121
- st.markdown('<p class = "medium-font"> An interactive cloud-native geospatial tool for exploring and visualizing California\'s protected lands with open data and generative AI. </p>', unsafe_allow_html = True)
122
 
123
-
124
- '''
125
- - ❌ Safari/iOS not yet supported. For Safari/iOS users, try [this version](https://huggingface.co/spaces/boettiger-lab/ca-30x30-folium) with similar functionality.
126
- - πŸ“Š Use the left sidebar to color-code the map by different attributes **(Group by)**, toggle on data layers and view summary charts **(Data Layers)**, or filter data **(Filters)**.
127
- - πŸ’¬ For a more tailored experience, query our dataset of protected areas and their precomputed mean values for each of the displayed layers, using the experimental chatbot below.
128
- '''
129
 
130
  st.divider()
131
 
@@ -225,6 +219,15 @@ def run_sql(query,color_choice):
225
  filters = {}
226
 
227
  with st.sidebar:
 
 
 
 
 
 
 
 
 
228
  color_choice = st.radio("Group by:", style_options, key = "color", help = "Select a category to change map colors and chart groupings.")
229
  colorby_vals = getColorVals(style_options, color_choice) #get options for selected color_by column
230
  alpha = 0.8
@@ -234,7 +237,7 @@ with st.sidebar:
234
  ##### Chatbot
235
  with st.container():
236
 
237
- with st.popover("ℹ️ Example Queries"):
238
  '''
239
  Mapping queries:
240
  - Show me areas open to the public that are in the top 10% of species richness.
 
115
  unsafe_allow_html=True,
116
  )
117
 
 
118
  st.markdown("<h2>CA 30x30 Planning & Assessment Prototype</h2>", unsafe_allow_html=True)
119
 
120
+ st.markdown('<p class = "medium-font"> In October 2020, Governor Newsom issued Executive Order N-82-20 which establishes a state goal of conserving 30% of California’s lands and coastal waters by 2030 – known as CA 30x30. </p>', unsafe_allow_html = True)
121
 
122
+ st.markdown('<p class = "medium-font"> This is an interactive cloud-native geospatial tool for exploring and visualizing California\'s protected lands. </p>', unsafe_allow_html = True)
 
 
 
 
 
123
 
124
  st.divider()
125
 
 
219
  filters = {}
220
 
221
  with st.sidebar:
222
+ with st.popover("ℹ️ Help"):
223
+ '''
224
+ - ❌ Safari/iOS not yet supported. For Safari/iOS users, try [this version](https://huggingface.co/spaces/boettiger-lab/ca-30x30-folium) with similar functionality.
225
+ - πŸ“Š Use this sidebar to color-code the map by different attributes **(Group by)**, toggle on data layers and view summary charts **(Data Layers)**, or filter data **(Filters)**.
226
+ - πŸ’¬ For a more tailored experience, query our dataset of protected areas and their precomputed mean values for each of the displayed layers, using the experimental chatbot. The language model tries to answer natural language questions by drawing only from curated datasets (listed below).
227
+ '''
228
+
229
+
230
+ st.divider()
231
  color_choice = st.radio("Group by:", style_options, key = "color", help = "Select a category to change map colors and chart groupings.")
232
  colorby_vals = getColorVals(style_options, color_choice) #get options for selected color_by column
233
  alpha = 0.8
 
237
  ##### Chatbot
238
  with st.container():
239
 
240
+ with st.popover("πŸ’¬ Example Queries"):
241
  '''
242
  Mapping queries:
243
  - Show me areas open to the public that are in the top 10% of species richness.