-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
61 lines (48 loc) · 1.5 KB
/
app.py
File metadata and controls
61 lines (48 loc) · 1.5 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import streamlit as st
from actors.page import show_actors
from stats.page import show_stats
from genres.page import show_genres
from login.page import show_login
from movies.page import show_movies
from reviews.page import show_reviews
def main():
if 'token' not in st.session_state:
show_login()
else:
st.title("Flix App")
menu_option = st.sidebar.selectbox(
"Menu",
[
"Home",
"Stats",
"Actors",
"Genres",
"Movies",
"Reviews",
"About",
"Contact"
]
)
if menu_option == "Home":
st.header("Welcome to Flix App! A Movie Recommendation System")
st.subheader(
"This app recommends movies based on your preferences."
)
elif menu_option == "Stats":
show_stats()
elif menu_option == "Actors":
show_actors()
elif menu_option == "Genres":
show_genres()
elif menu_option == "Movies":
show_movies()
elif menu_option == "Reviews":
show_reviews()
elif menu_option == "About":
st.header("Welcome to the About Section")
st.subheader("Learn more about this app.")
elif menu_option == "Contact":
st.header("Welcome to the Contact Section")
st.subheader("Get in touch with us.")
if __name__ == "__main__":
main()