Skip to content

Commit ea34287

Browse files
authored
Update App_Spec.py
1 parent bb50a1a commit ea34287

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

fun_SPEC_NEC/App_Spec.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@
2525
# pg.run()
2626

2727
import streamlit as st
28-
29-
# --- Page Setup ---
28+
import runpy
3029

3130
def main():
32-
about_me()
33-
spec_nec()
31+
st.sidebar.title("Navigation")
32+
app_mode = st.sidebar.radio("Go to", ["About Me", "Spec NEC"])
33+
34+
if app_mode == "About Me":
35+
about_me()
36+
elif app_mode == "Spec NEC":
37+
spec_nec()
3438

3539
def about_me():
3640
runpy.run_path('about_me.py')
@@ -43,3 +47,4 @@ def spec_nec():
4347

4448

4549

50+

0 commit comments

Comments
 (0)