-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpage_template.py
More file actions
33 lines (23 loc) · 1.1 KB
/
Copy pathpage_template.py
File metadata and controls
33 lines (23 loc) · 1.1 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
import streamlit as st
# A page template to keep track of all the helper functions and classes that are used in the project.
# Make a copy of this page to begin a new page
from helpers import navigation_footer, check_openai_key, write_what_you_will_learn
# Page path is used to identify the page in the navigation footer. Use the file path to the page.
PAGE_PATH = "content/pages/page_template.py"
# If you want to write an essay, use the write_essay_page() function.
# It highlights to users of pages that are essays.
# write_essay_page()
# If this page has exercises, use the check_openai_key() function to check if the user has an OpenAI key.
# Remove this if it is an essay.
check_openai_key()
# Title of the page
st.title("Page Template")
# A widget to summarise what you will learn on this page
write_what_you_will_learn([
])
"""
Continue to enter page content here.
"""
# Navigation footer is a common footer that is used in all pages. It provides links to the previous and next pages.
navigation_footer(PAGE_PATH)
# TODO: Remember to add a link to the page in routes.py to make it accessible in the app.