File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change 1
- import streamlit as st
1
+ # import streamlit as st
2
2
3
3
# # --- Page Setup ---
4
4
25
25
# pg.run()
26
26
27
27
import streamlit as st
28
+ import runpy
28
29
29
- # Define a simple navigation function
30
30
def main ():
31
31
st .sidebar .title ("Navigation" )
32
- page = st .sidebar .radio ("Go to" , ["About Me" , "Spec NEC" ])
32
+ app_mode = st .sidebar .radio ("Go to" , ["About Me" , "Spec NEC" ])
33
33
34
- if page == "About Me" :
34
+ if app_mode == "About Me" :
35
35
about_me ()
36
- elif page == "Spec NEC" :
36
+ elif app_mode == "Spec NEC" :
37
37
spec_nec ()
38
38
39
39
def about_me ():
40
- st .title ("About Me" )
41
- runpy ('about_me.py' )
40
+ runpy .run_path ('about_me.py' )
42
41
43
42
def spec_nec ():
44
- st .title ("Spec NEC" )
45
- runpy ('SpecNec_executable_streamlit.py' )
46
-
47
- def runpy (filepath ):
48
- with open (filepath ) as file :
49
- exec (file .read (), globals ())
43
+ runpy .run_path ('SpecNec_executable_streamlit.py' )
50
44
51
45
if __name__ == "__main__" :
52
46
main ()
53
47
48
+
You can’t perform that action at this time.
0 commit comments