Spaces:
Paused
Paused
File size: 583 Bytes
fd37dba 522f145 fd37dba 3782715 fd37dba bd820a3 fd37dba 3782715 fd37dba 3782715 fd37dba 3782715 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import streamlit as st
# Define subjects and file paths
subjects = {
"Architecture": "architecture.md",
"Data Structures": "DS.md",
"Operating Systems": "advanceos.md",
"Mathematics": "maths.md",
"C++": "cplusplus.md"
}
# Display the navbar at the top
st.title("Course Syllabus")
subject = st.radio("Select a subject:", list(subjects.keys()), horizontal=True)
# Load and display content based on selection
with open(subjects[subject], "r") as file:
syllabus_content = file.read()
# Render the content
st.markdown(syllabus_content, unsafe_allow_html=True)
|