awacke1 commited on
Commit
183166f
·
verified ·
1 Parent(s): b39bcc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -191,7 +191,7 @@ md_submodels_outline = r'''
191
  2. **📊 Analytics, Forecasting and Visualization - BI, dashboards and forecasting**
192
  3. **📝 Data Governance and Quality - Modeling, warehousing and stakeholder comms**
193
 
194
- ## 4. 📢 Community OpenSource Communication CoOS
195
  1. **📚 Technical Documentation and Demos - Code examples, demos and notebooks**
196
  2. **💬 Community Engagement and Collaboration - Public speaking, social media and collabs**
197
 
@@ -360,8 +360,7 @@ def main():
360
  st.set_page_config(page_title="Densified Skill Tree", layout="wide")
361
 
362
  # Get query parameters
363
- query_params = st.get_query_params()
364
- selected_area = query_params.get("area", [None])[0]
365
 
366
  # Display combined outline
367
  st.markdown(md_combined_outline, unsafe_allow_html=True)
@@ -374,6 +373,9 @@ def main():
374
  st.markdown(markdown_areas[key], unsafe_allow_html=True)
375
  if key in mermaid_areas:
376
  render_mermaid(mermaid_areas[key], height=350)
 
 
 
377
  break
378
  else:
379
  # Show all areas if no specific area is selected
@@ -382,7 +384,7 @@ def main():
382
  if key in mermaid_areas:
383
  render_mermaid(mermaid_areas[key], height=350)
384
 
385
- # Render the Failure Analysis combined mermaid diagram
386
  render_mermaid(combined_mermaid, height=850)
387
 
388
  # Display additional markdown sections
 
191
  2. **📊 Analytics, Forecasting and Visualization - BI, dashboards and forecasting**
192
  3. **📝 Data Governance and Quality - Modeling, warehousing and stakeholder comms**
193
 
194
+ ## 4. � **📢 Community OpenSource Communication CoOS
195
  1. **📚 Technical Documentation and Demos - Code examples, demos and notebooks**
196
  2. **💬 Community Engagement and Collaboration - Public speaking, social media and collabs**
197
 
 
360
  st.set_page_config(page_title="Densified Skill Tree", layout="wide")
361
 
362
  # Get query parameters
363
+ selected_area = st.query_params.get("area", None) # Get the 'area' parameter, default to None
 
364
 
365
  # Display combined outline
366
  st.markdown(md_combined_outline, unsafe_allow_html=True)
 
373
  st.markdown(markdown_areas[key], unsafe_allow_html=True)
374
  if key in mermaid_areas:
375
  render_mermaid(mermaid_areas[key], height=350)
376
+ # Add a "Back to Overview" button
377
+ if st.button("Back to Overview"):
378
+ st.query_params.clear() # Clear query parameters to show all areas
379
  break
380
  else:
381
  # Show all areas if no specific area is selected
 
384
  if key in mermaid_areas:
385
  render_mermaid(mermaid_areas[key], height=350)
386
 
387
+ # Render the combined mermaid diagram
388
  render_mermaid(combined_mermaid, height=850)
389
 
390
  # Display additional markdown sections