-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHome.py
More file actions
34 lines (27 loc) · 1.16 KB
/
Copy pathHome.py
File metadata and controls
34 lines (27 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import streamlit as st
from workshop import ui
from workshop.i18n import t
st.set_page_config(page_title="Data to Decisions", page_icon="📊", layout="wide")
lang = ui.language_toggle()
from pathlib import Path as _P
_logo = _P(__file__).parent / "assets" / "neurobotics_logo.png"
if _logo.exists():
st.image(str(_logo), width=90)
rtl = 'dir="rtl" style="text-align:right"' if lang == "ar" else ""
st.title(f"📊 {t('title', lang)}")
st.markdown(f'<div {rtl}><h3>{t("subtitle", lang)}</h3>{t("intro", lang)}</div>',
unsafe_allow_html=True)
st.markdown(f"### {t('journey', lang)}")
st.markdown(
f"**{t('Collect', lang)}** → **{t('Clean', lang)}** → **{t('Analyze', lang)}** → "
f"**{t('Decision', lang)}**")
st.graphviz_chart("""
digraph { rankdir=LR; node [shape=box, style=rounded];
Collect -> Clean -> Filter -> Analyze -> Engineer -> Predict -> Decision; }
""")
st.markdown("### ✋ Before we start")
word = st.text_input("What's the first word that comes to mind when you hear **“data”**?")
if word:
st.info(f"You walked in thinking *“{word}”* — let's see where that goes by the end.")
st.caption(t("begin", lang))
ui.footer()