Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,8 @@ import streamlit_authenticator as stauth
|
|
| 5 |
import yaml
|
| 6 |
from yaml.loader import SafeLoader
|
| 7 |
|
|
|
|
|
|
|
| 8 |
st.set_page_config(page_title="SAAS Template App", page_icon="🧊", layout="wide")
|
| 9 |
|
| 10 |
with open("config.yaml") as file:
|
|
@@ -158,7 +160,20 @@ if st.session_state["authentication_status"]:
|
|
| 158 |
"### 🖱️Press "
|
| 159 |
R" on your keyboard⌨️ to rerun the app for faster loading 🔄."
|
| 160 |
)
|
|
|
|
|
|
|
| 161 |
elif st.session_state["authentication_status"] is False:
|
| 162 |
st.error("Username/password is incorrect")
|
| 163 |
elif st.session_state["authentication_status"] is None:
|
| 164 |
st.warning("Please enter your username and password")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
import yaml
|
| 6 |
from yaml.loader import SafeLoader
|
| 7 |
|
| 8 |
+
from sections.software_engineer_basics import *
|
| 9 |
+
|
| 10 |
st.set_page_config(page_title="SAAS Template App", page_icon="🧊", layout="wide")
|
| 11 |
|
| 12 |
with open("config.yaml") as file:
|
|
|
|
| 160 |
"### 🖱️Press "
|
| 161 |
R" on your keyboard⌨️ to rerun the app for faster loading 🔄."
|
| 162 |
)
|
| 163 |
+
|
| 164 |
+
|
| 165 |
elif st.session_state["authentication_status"] is False:
|
| 166 |
st.error("Username/password is incorrect")
|
| 167 |
elif st.session_state["authentication_status"] is None:
|
| 168 |
st.warning("Please enter your username and password")
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
page_names_to_funcs = {
|
| 172 |
+
"Software Engineer Basics": software_engineer_basics
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
demo_name = st.sidebar.radio(
|
| 176 |
+
"Choose a topic below:", key="visibility", options=page_names_to_funcs.keys()
|
| 177 |
+
)
|
| 178 |
+
|
| 179 |
+
page_names_to_funcs[demo_name]()
|