cboettig commited on
Commit
31882ab
·
unverified ·
2 Parent(s): b4f621d c56928e

Merge pull request #44 from boettiger-lab/feat/header-organization

Browse files
Files changed (1) hide show
  1. app/app.py +14 -8
app/app.py CHANGED
@@ -115,17 +115,14 @@ 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 +222,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 +240,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
 
121
+ st.markdown('<p class="medium-font"> In October 2020, Governor Newsom issued <a href="https://www.gov.ca.gov/wp-content/uploads/2020/10/10.07.2020-EO-N-82-20-.pdf" target="_blank">Executive Order N-82-20</a>, which establishes a state goal of conserving 30% of California’s lands and coastal waters by 2030 – known as <a href="https://www.californianature.ca.gov/" target="_blank">CA 30x30</a>. </p>',
122
+ unsafe_allow_html=True)
123
 
124
+
125
+ 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)
 
 
 
126
 
127
  st.divider()
128
 
 
222
  filters = {}
223
 
224
  with st.sidebar:
225
+ with st.popover("ℹ️ Help"):
226
+ '''
227
+ - ❌ Safari/iOS not yet supported. For Safari/iOS users, try [this version](https://huggingface.co/spaces/boettiger-lab/ca-30x30-folium) with similar functionality.
228
+ - 📊 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)**.
229
+ - 💬 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).
230
+ '''
231
+
232
+
233
+ st.divider()
234
  color_choice = st.radio("Group by:", style_options, key = "color", help = "Select a category to change map colors and chart groupings.")
235
  colorby_vals = getColorVals(style_options, color_choice) #get options for selected color_by column
236
  alpha = 0.8
 
240
  ##### Chatbot
241
  with st.container():
242
 
243
+ with st.popover("💬 Example Queries"):
244
  '''
245
  Mapping queries:
246
  - Show me areas open to the public that are in the top 10% of species richness.