fix error
Browse files
app.py
CHANGED
|
@@ -11,44 +11,6 @@ if str(STREAMLIT_SRC) not in sys.path:
|
|
| 11 |
|
| 12 |
from pages import about_page, contact_page, home_page
|
| 13 |
|
| 14 |
-
|
| 15 |
-
def _inject_global_styles() -> None:
|
| 16 |
-
st.markdown(
|
| 17 |
-
"""
|
| 18 |
-
<style>
|
| 19 |
-
:root {
|
| 20 |
-
--chaptly-max-width: 1200px;
|
| 21 |
-
--chaptly-horizontal-padding: 2.5rem;
|
| 22 |
-
}
|
| 23 |
-
|
| 24 |
-
div[data-testid="stAppViewContainer"] > .main > div[data-testid="block-container"] {
|
| 25 |
-
max-width: var(--chaptly-max-width);
|
| 26 |
-
padding-left: var(--chaptly-horizontal-padding);
|
| 27 |
-
padding-right: var(--chaptly-horizontal-padding);
|
| 28 |
-
margin-left: auto;
|
| 29 |
-
margin-right: auto;
|
| 30 |
-
}
|
| 31 |
-
|
| 32 |
-
div[data-testid="stHorizontalBlock"] > div:first-child {
|
| 33 |
-
width: 100%;
|
| 34 |
-
}
|
| 35 |
-
|
| 36 |
-
.stExpander {
|
| 37 |
-
border: 1px solid #f4d6df;
|
| 38 |
-
border-radius: 0.5rem;
|
| 39 |
-
}
|
| 40 |
-
|
| 41 |
-
@media (max-width: 992px) {
|
| 42 |
-
div[data-testid="stAppViewContainer"] > .main > div[data-testid="block-container"] {
|
| 43 |
-
padding-left: 1.25rem;
|
| 44 |
-
padding-right: 1.25rem;
|
| 45 |
-
}
|
| 46 |
-
}
|
| 47 |
-
</style>
|
| 48 |
-
""",
|
| 49 |
-
unsafe_allow_html=True,
|
| 50 |
-
)
|
| 51 |
-
|
| 52 |
def main():
|
| 53 |
st.set_page_config(
|
| 54 |
page_title="Chaptly (YouTube Tutor Chatbot)",
|
|
@@ -56,7 +18,6 @@ def main():
|
|
| 56 |
layout="wide",
|
| 57 |
initial_sidebar_state="expanded",
|
| 58 |
)
|
| 59 |
-
_inject_global_styles()
|
| 60 |
|
| 61 |
st.sidebar.title("Navigation")
|
| 62 |
|
|
|
|
| 11 |
|
| 12 |
from pages import about_page, contact_page, home_page
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
def main():
|
| 15 |
st.set_page_config(
|
| 16 |
page_title="Chaptly (YouTube Tutor Chatbot)",
|
|
|
|
| 18 |
layout="wide",
|
| 19 |
initial_sidebar_state="expanded",
|
| 20 |
)
|
|
|
|
| 21 |
|
| 22 |
st.sidebar.title("Navigation")
|
| 23 |
|