Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import streamlit.components.v1 as components
|
| 3 |
|
| 4 |
-
#
|
|
|
|
|
|
|
| 5 |
def render_mermaid(mermaid_code, height=500):
|
|
|
|
| 6 |
html_code = f"""
|
| 7 |
<html>
|
| 8 |
<head>
|
|
@@ -29,7 +32,6 @@ def render_mermaid(mermaid_code, height=500):
|
|
| 29 |
# --------------------------
|
| 30 |
# Markdown Outlines as Python Variables
|
| 31 |
# --------------------------
|
| 32 |
-
|
| 33 |
md_combined_outline = r'''
|
| 34 |
# 📚 Hands On ML App. Dev. with Mixture of Experts and Multiagent Skills and State of Art ML Architecture
|
| 35 |
1. **👥 Leadership and Collaboration LeCo:** Strategic leadership and team management.
|
|
@@ -183,8 +185,7 @@ Unlock your AI mastery with our densified skill tree - from LC to SD - each node
|
|
| 183 |
# --------------------------
|
| 184 |
# Mermaid Diagrams
|
| 185 |
# --------------------------
|
| 186 |
-
# Set of records where each has a label and a
|
| 187 |
-
|
| 188 |
mermaid_areas = {
|
| 189 |
"1. 👥 Leadership and Collaboration - LeCo": r'''
|
| 190 |
graph LR
|
|
@@ -285,29 +286,26 @@ graph TD
|
|
| 285 |
# --------------------------
|
| 286 |
# Streamlit App Layout
|
| 287 |
# --------------------------
|
| 288 |
-
|
| 289 |
def main():
|
| 290 |
st.set_page_config(page_title="Densified Skill Tree", layout="wide")
|
|
|
|
|
|
|
| 291 |
st.markdown(md_combined_outline, unsafe_allow_html=True)
|
| 292 |
st.markdown(md_submodels_outline, unsafe_allow_html=True)
|
|
|
|
|
|
|
| 293 |
for area, mermaid_code in mermaid_areas.items():
|
| 294 |
st.subheader(area)
|
| 295 |
render_mermaid(mermaid_code, height=300)
|
|
|
|
|
|
|
| 296 |
render_mermaid(combined_mermaid, height=800)
|
| 297 |
|
| 298 |
-
#
|
| 299 |
st.markdown(md_glossary, unsafe_allow_html=True)
|
| 300 |
-
|
| 301 |
-
# 🐍 Python Libraries Guide
|
| 302 |
st.markdown(md_python_libraries, unsafe_allow_html=True)
|
| 303 |
-
|
| 304 |
-
# 💻 JavaScript Libraries Guide
|
| 305 |
st.markdown(md_js_libraries, unsafe_allow_html=True)
|
| 306 |
-
|
| 307 |
-
# 🖼 Picture Mnemonic Outline
|
| 308 |
st.markdown(md_picture_mnemonic, unsafe_allow_html=True)
|
| 309 |
-
|
| 310 |
-
# 🐦 Tweet Summary
|
| 311 |
st.markdown(md_tweet, unsafe_allow_html=True)
|
| 312 |
|
| 313 |
if __name__ == "__main__":
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import streamlit.components.v1 as components
|
| 3 |
|
| 4 |
+
# --------------------------
|
| 5 |
+
# Mermaid Renderer Function
|
| 6 |
+
# --------------------------
|
| 7 |
def render_mermaid(mermaid_code, height=500):
|
| 8 |
+
"""Render mermaid diagram from code using a Streamlit HTML component."""
|
| 9 |
html_code = f"""
|
| 10 |
<html>
|
| 11 |
<head>
|
|
|
|
| 32 |
# --------------------------
|
| 33 |
# Markdown Outlines as Python Variables
|
| 34 |
# --------------------------
|
|
|
|
| 35 |
md_combined_outline = r'''
|
| 36 |
# 📚 Hands On ML App. Dev. with Mixture of Experts and Multiagent Skills and State of Art ML Architecture
|
| 37 |
1. **👥 Leadership and Collaboration LeCo:** Strategic leadership and team management.
|
|
|
|
| 185 |
# --------------------------
|
| 186 |
# Mermaid Diagrams
|
| 187 |
# --------------------------
|
| 188 |
+
# Set of records where each key has a label and a Unicode text block with mermaid code.
|
|
|
|
| 189 |
mermaid_areas = {
|
| 190 |
"1. 👥 Leadership and Collaboration - LeCo": r'''
|
| 191 |
graph LR
|
|
|
|
| 286 |
# --------------------------
|
| 287 |
# Streamlit App Layout
|
| 288 |
# --------------------------
|
|
|
|
| 289 |
def main():
|
| 290 |
st.set_page_config(page_title="Densified Skill Tree", layout="wide")
|
| 291 |
+
|
| 292 |
+
# Display combined outlines and submodels
|
| 293 |
st.markdown(md_combined_outline, unsafe_allow_html=True)
|
| 294 |
st.markdown(md_submodels_outline, unsafe_allow_html=True)
|
| 295 |
+
|
| 296 |
+
# Loop through each mermaid area and display its subheader and graph
|
| 297 |
for area, mermaid_code in mermaid_areas.items():
|
| 298 |
st.subheader(area)
|
| 299 |
render_mermaid(mermaid_code, height=300)
|
| 300 |
+
|
| 301 |
+
# Render the combined mermaid diagram
|
| 302 |
render_mermaid(combined_mermaid, height=800)
|
| 303 |
|
| 304 |
+
# Display additional markdown sections
|
| 305 |
st.markdown(md_glossary, unsafe_allow_html=True)
|
|
|
|
|
|
|
| 306 |
st.markdown(md_python_libraries, unsafe_allow_html=True)
|
|
|
|
|
|
|
| 307 |
st.markdown(md_js_libraries, unsafe_allow_html=True)
|
|
|
|
|
|
|
| 308 |
st.markdown(md_picture_mnemonic, unsafe_allow_html=True)
|
|
|
|
|
|
|
| 309 |
st.markdown(md_tweet, unsafe_allow_html=True)
|
| 310 |
|
| 311 |
if __name__ == "__main__":
|