Commit 2
Browse fileschanging the name from main to app.py
app.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
# Define pages (by file or function)
|
| 4 |
+
page1 = st.Page("about_me.py", title="About Me", icon="👤")
|
| 5 |
+
page2 = st.Page("base.py", title="Home Page", icon="🏠")
|
| 6 |
+
page3 = st.Page("popularity.py", title="Popularity Based Filtering", icon="🔥")
|
| 7 |
+
page4 = st.Page("content_based.py", title="Content Based Filtering", icon="🎬")
|
| 8 |
+
page5 = st.Page("collaborative_user.py", title="Collaborative User based", icon="👥")
|
| 9 |
+
page6 = st.Page("collaborative_item.py", title="Collaborative Item based", icon="🛍️")
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
# Create navigation
|
| 13 |
+
pg = st.navigation([page1, page2, page3, page4, page5, page6])
|
| 14 |
+
|
| 15 |
+
# Run navigation
|
| 16 |
+
pg.run()
|