Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
#!/usr/bin/env python3
|
|
|
|
| 2 |
"""
|
| 3 |
app.py
|
| 4 |
|
|
@@ -183,6 +184,23 @@ md_js_libraries = r'''
|
|
| 183 |
20. **π Three.js (three) -** Library for creating 3D graphics in the browser.
|
| 184 |
'''
|
| 185 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
# --------------------------
|
| 187 |
# Mermaid Diagrams (using graph LR)
|
| 188 |
# --------------------------
|
|
@@ -199,4 +217,142 @@ graph LR
|
|
| 199 |
graph LR
|
| 200 |
SC[π Security and Compliance (SeCo)]
|
| 201 |
SC --> SeCo1[π‘οΈ Security Operations and Incident Response - Incident management, pen testing and vulnerability assessment]
|
| 202 |
-
SC --> SeCo2[β
Compliance and Governance - Data quality, compliance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
"""
|
| 4 |
app.py
|
| 5 |
|
|
|
|
| 184 |
20. **π Three.js (three) -** Library for creating 3D graphics in the browser.
|
| 185 |
'''
|
| 186 |
|
| 187 |
+
md_picture_mnemonic = r'''
|
| 188 |
+
1. **1 - Lighthouse:** Represents #1, a beacon of guidance.
|
| 189 |
+
2. **2 - Eyeglasses:** Symbolizes #2, two lenses for clarity.
|
| 190 |
+
3. **3 - Stool:** Denotes #3, three legs for stability.
|
| 191 |
+
4. **4 - Window:** Represents #4, four panes for insight.
|
| 192 |
+
5. **5 - Hand:** Illustrates #5, five fingers for dexterity.
|
| 193 |
+
6. **6 - Dice:** Signifies #6, six sides for chance.
|
| 194 |
+
7. **7 - Cloud:** Evokes #7, light and airy.
|
| 195 |
+
8. **8 - Gate:** Symbolizes #8, an entry to new paths.
|
| 196 |
+
9. **9 - Cat:** Reminds of #9, nine lives and resilience.
|
| 197 |
+
'''
|
| 198 |
+
|
| 199 |
+
md_references = r'''
|
| 200 |
+
## References
|
| 201 |
+
[1](#references) McCarthy, M. J. (2007). *Mastering the INFORMATION AGE - A Course in Working Smarter, Thinking Better, and Learning Faster*. Retrieved from [https://www.example.com/reference](https://www.example.com/reference)
|
| 202 |
+
'''
|
| 203 |
+
|
| 204 |
# --------------------------
|
| 205 |
# Mermaid Diagrams (using graph LR)
|
| 206 |
# --------------------------
|
|
|
|
| 217 |
graph LR
|
| 218 |
SC[π Security and Compliance (SeCo)]
|
| 219 |
SC --> SeCo1[π‘οΈ Security Operations and Incident Response - Incident management, pen testing and vulnerability assessment]
|
| 220 |
+
SC --> SeCo2[β
Compliance and Governance - Data quality, compliance policies and IAM]
|
| 221 |
+
SC --> SeCo3[π System Hardening and Automation - Secure HPC, ML, Python, Bash automation and cost optimization]
|
| 222 |
+
''',
|
| 223 |
+
"3. π Data Engineering (DaEn)": r'''
|
| 224 |
+
graph LR
|
| 225 |
+
DE[π Data Engineering (DaEn)]
|
| 226 |
+
DE --> DaEn1[π§ Data Processing and Ingestion - Multi-modal data, event handling and ETL]
|
| 227 |
+
DE --> DaEn2[π Analytics, Forecasting and Visualization - BI tools, dashboards and forecasting]
|
| 228 |
+
DE --> DaEn3[π Data Governance and Quality - Modeling, warehousing and stakeholder communications]
|
| 229 |
+
''',
|
| 230 |
+
"4. π’ Community OpenSource (CoOS)": r'''
|
| 231 |
+
graph LR
|
| 232 |
+
CO[π’ Community OpenSource (CoOS)]
|
| 233 |
+
CO --> CoOS1[π Technical Documentation and Demos - Code examples, demos and notebooks]
|
| 234 |
+
CO --> CoOS2[π¬ Community Engagement and Collaboration - Public speaking, social media engagement and collaborations]
|
| 235 |
+
''',
|
| 236 |
+
"5. π± FullStack UI Mobile (FuMo)": r'''
|
| 237 |
+
graph LR
|
| 238 |
+
FM[π± FullStack UI Mobile (FuMo)]
|
| 239 |
+
FM --> FuMo1[π± Mobile and Web App Development - Full-stack development, CI/CD and API design]
|
| 240 |
+
FM --> FuMo2[π¨ UI/UX and Frontend Integration - React, Next.js, TypeScript and user-centric UI design]
|
| 241 |
+
FM --> FuMo3[π Backend and Cross-Platform Tools - Python/Node, cloud microservices and ML bridging]
|
| 242 |
+
''',
|
| 243 |
+
"6. π» Software Cloud MLOps (SCMI)": r'''
|
| 244 |
+
graph LR
|
| 245 |
+
SM[π» Software Cloud MLOps (SCMI)]
|
| 246 |
+
SM --> SCMI1[π οΈ Developer Tooling and Observability - Full-stack development, debugging and SRE practices]
|
| 247 |
+
SM --> SCMI2[π€ ML Frameworks and Automation - Python APIs, PyTorch, Keras and Ray, Horovod]
|
| 248 |
+
SM --> SCMI3[π Data Pipelines and Processing - Spark, Airflow and ETL pipelines]
|
| 249 |
+
SM --> SCMI4[βοΈ Cloud and Infrastructure Provisioning - Kubernetes, Docker, Terraform and cloud integration]
|
| 250 |
+
''',
|
| 251 |
+
"7. π€ Machine Learning AI (MLAI)": r'''
|
| 252 |
+
graph LR
|
| 253 |
+
ML[π€ Machine Learning AI (MLAI)]
|
| 254 |
+
ML --> MLAI1[ποΈ Large-Scale Architectures and Retrieval - Transformers, RAG and vector databases]
|
| 255 |
+
ML --> MLAI2[βοΈ Experimentation and Distributed Training - RL, quantization and ablation studies]
|
| 256 |
+
ML --> MLAI3[π‘ Application and API Development - Agentic AI, LLM inference and microservices]
|
| 257 |
+
ML --> MLAI4[π Optimization and Monitoring - Performance tuning, scaling and reliability]
|
| 258 |
+
''',
|
| 259 |
+
"8. π§ Systems Infrastructure (SyIn)": r'''
|
| 260 |
+
graph LR
|
| 261 |
+
SI[π§ Systems Infrastructure (SyIn)]
|
| 262 |
+
SI --> SyIn1[π§ Hardware and OS Integration - Linux, embedded systems, C/C++ integrations]
|
| 263 |
+
SI --> SyIn2[βοΈ Performance and Tuning - Cross-layer tuning, throughput modeling and load balancing]
|
| 264 |
+
SI --> SyIn3[π€ Advanced ML and Automation - Cross-team innovation, observability and ServiceNow automation]
|
| 265 |
+
SI --> SyIn4[π Distributed and HPC Deployment - Data-center HPC/ML, GPU orchestration and multi-GPU pipelines]
|
| 266 |
+
''',
|
| 267 |
+
"9. π― Specialized Domains (SpDo)": r'''
|
| 268 |
+
graph LR
|
| 269 |
+
SD[π― Specialized Domains (SpDo)]
|
| 270 |
+
SD --> SpDo1[π₯ Advanced CV and 3D Graphics - Neural rendering, reconstruction and graphics engines]
|
| 271 |
+
SD --> SpDo2[π Robotics and Autonomous Systems - Autonomous vehicles, sensor fusion and path planning]
|
| 272 |
+
SD --> SpDo3[π» HPC and Hardware Integration - GPU/SoC modeling, HPC networking and prototyping]
|
| 273 |
+
SD --> SpDo4[π’ AI Quantization and Inference - Quantization techniques, in-browser inference and neural sparse models]
|
| 274 |
+
'''
|
| 275 |
+
}
|
| 276 |
+
|
| 277 |
+
combined_mermaid = r'''
|
| 278 |
+
graph LR
|
| 279 |
+
LC["1. π₯ Leadership and Collaboration (LeCo)"]
|
| 280 |
+
SC["2. π Security and Compliance (SeCo)"]
|
| 281 |
+
DE["3. π Data Engineering (DaEn)"]
|
| 282 |
+
CO["4. π’ Community OpenSource (CoOS)"]
|
| 283 |
+
FM["5. π± FullStack UI Mobile (FuMo)"]
|
| 284 |
+
SM["6. π» Software Cloud MLOps (SCMI)"]
|
| 285 |
+
ML["7. π€ Machine Learning AI (MLAI)"]
|
| 286 |
+
SI["8. π§ Systems Infrastructure (SyIn)"]
|
| 287 |
+
SD["9. π― Specialized Domains (SpDo)"]
|
| 288 |
+
|
| 289 |
+
LC -->|π§ guides| SC
|
| 290 |
+
LC -->|π leads| ML
|
| 291 |
+
LC -->|π€ supports| SI
|
| 292 |
+
SC ---|π secures| ML
|
| 293 |
+
SC ---|π‘οΈ protects| SM
|
| 294 |
+
ML -->|π§ feeds| DE
|
| 295 |
+
SM -->|β‘ powers| ML
|
| 296 |
+
FM ---|π integrates with| SM
|
| 297 |
+
FM -->|β extends to| SD
|
| 298 |
+
SD ---|β¨ enhances| ML
|
| 299 |
+
LC ---|ποΈ oversees| SC
|
| 300 |
+
CO ---|π€ collaborates with| LC
|
| 301 |
+
CO ---|π£οΈ informs| DE
|
| 302 |
+
SD ---|π shares with| CO
|
| 303 |
+
'''
|
| 304 |
+
|
| 305 |
+
md_tweet = r'''
|
| 306 |
+
# π¦ Tweet Summary
|
| 307 |
+
Unlock your AI mastery with our densified skill tree - from LC to SD - each node paired with powerful mnemonics and vivid visuals (πΌππͺπͺβπ²βοΈπͺπ±) to boost memory and innovation. #AI #ML #Learning #Innovation
|
| 308 |
+
'''
|
| 309 |
+
|
| 310 |
+
md_picture_mnemonic = r'''
|
| 311 |
+
1. **1 - Lighthouse:** Represents #1, a beacon of guidance.
|
| 312 |
+
2. **2 - Eyeglasses:** Symbolizes #2, two lenses for clarity.
|
| 313 |
+
3. **3 - Stool:** Denotes #3, three legs for stability.
|
| 314 |
+
4. **4 - Window:** Represents #4, four panes for insight.
|
| 315 |
+
5. **5 - Hand:** Illustrates #5, five fingers for dexterity.
|
| 316 |
+
6. **6 - Dice:** Signifies #6, six sides for chance.
|
| 317 |
+
7. **7 - Cloud:** Evokes #7, light and airy.
|
| 318 |
+
8. **8 - Gate:** Symbolizes #8, an entry to new paths.
|
| 319 |
+
9. **9 - Cat:** Reminds of #9, nine lives and resilience.
|
| 320 |
+
'''
|
| 321 |
+
|
| 322 |
+
md_references = r'''
|
| 323 |
+
## References
|
| 324 |
+
[1](#references) McCarthy, M. J. (2007). *Mastering the INFORMATION AGE - A Course in Working Smarter, Thinking Better, and Learning Faster*. Retrieved from [https://www.example.com/reference](https://www.example.com/reference)
|
| 325 |
+
'''
|
| 326 |
+
|
| 327 |
+
# --------------------------
|
| 328 |
+
# Streamlit App Layout
|
| 329 |
+
# --------------------------
|
| 330 |
+
|
| 331 |
+
def main():
|
| 332 |
+
st.set_page_config(page_title="Densified Skill Tree", layout="wide")
|
| 333 |
+
st.markdown(md_combined_outline, unsafe_allow_html=True)
|
| 334 |
+
st.markdown(md_submodels_outline, unsafe_allow_html=True)
|
| 335 |
+
for area, mermaid_code in mermaid_areas.items():
|
| 336 |
+
st.subheader(area)
|
| 337 |
+
render_mermaid(mermaid_code, height=300)
|
| 338 |
+
render_mermaid(combined_mermaid, height=800)
|
| 339 |
+
|
| 340 |
+
st.header("π Glossary")
|
| 341 |
+
st.markdown(md_glossary, unsafe_allow_html=True)
|
| 342 |
+
|
| 343 |
+
st.header("π Python Libraries Guide")
|
| 344 |
+
st.markdown(md_python_libraries, unsafe_allow_html=True)
|
| 345 |
+
|
| 346 |
+
st.header("π» JavaScript Libraries Guide")
|
| 347 |
+
st.markdown(md_js_libraries, unsafe_allow_html=True)
|
| 348 |
+
|
| 349 |
+
st.header("Picture Mnemonic Outline")
|
| 350 |
+
st.markdown(md_picture_mnemonic, unsafe_allow_html=True)
|
| 351 |
+
|
| 352 |
+
st.header("π¦ Tweet Summary")
|
| 353 |
+
st.markdown(md_tweet, unsafe_allow_html=True)
|
| 354 |
+
|
| 355 |
+
st.markdown(md_references, unsafe_allow_html=True)
|
| 356 |
+
|
| 357 |
+
if __name__ == "__main__":
|
| 358 |
+
main()
|