Update app.py
Browse files
app.py
CHANGED
|
@@ -42,18 +42,18 @@ elif page == "NLP Techniques":
|
|
| 42 |
""")
|
| 43 |
|
| 44 |
# Pagination buttons
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
|
| 58 |
|
| 59 |
# Footer
|
|
|
|
| 42 |
""")
|
| 43 |
|
| 44 |
# Pagination buttons
|
| 45 |
+
col1, col2 = st.columns(2)
|
| 46 |
+
with col1:
|
| 47 |
+
if st.button("Previous Page"):
|
| 48 |
+
if current_page == "NLP Techniques":
|
| 49 |
+
st.experimental_set_query_params(page=pages[0])
|
| 50 |
+
st.experimental_rerun() # Forces the app to rerun
|
| 51 |
+
|
| 52 |
+
with col2:
|
| 53 |
+
if st.button("Next Page"):
|
| 54 |
+
if current_page == "Introduction to NLP":
|
| 55 |
+
st.experimental_set_query_params(page=pages[1])
|
| 56 |
+
st.experimental_rerun() # Forces the app to rerun
|
| 57 |
|
| 58 |
|
| 59 |
# Footer
|