Spaces:
Sleeping
Sleeping
amirakhlaghiqqq
commited on
Commit
•
68fec35
1
Parent(s):
784f067
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ st.set_page_config(page_title="Movie Info", page_icon=":movie_camera:")
|
|
54 |
st.title("Movie Recommender Engine")
|
55 |
|
56 |
system_option = st.radio(" How would you like us to choose your next movie?"
|
57 |
-
,("Best Movies of all time","Trend Movies","Special for You:)"))
|
58 |
|
59 |
movies_watched = st.multiselect("What are your top three fovorite movies? (At least 3 movies)", list_of_all_movies)
|
60 |
|
@@ -76,12 +76,13 @@ if suggest_button:
|
|
76 |
list_of_movies = recomender.final_recommender_hot_picks_of_all_time(movies_watched)
|
77 |
|
78 |
elif system_option == "Trend Movies":
|
79 |
-
|
80 |
list_of_movies = recomender.final_recommender_hot_picks_now(movies_watched)
|
81 |
-
|
82 |
-
|
83 |
list_of_movies = recomender.final_recommender_for_you(movies_watched)
|
84 |
-
|
|
|
|
|
85 |
|
86 |
for i,_ in enumerate(list_of_movies):
|
87 |
show_image(i)
|
|
|
54 |
st.title("Movie Recommender Engine")
|
55 |
|
56 |
system_option = st.radio(" How would you like us to choose your next movie?"
|
57 |
+
,("Best Movies of all time","Trend Movies","Special for You:)", " People with similar tast like (CFR)"))
|
58 |
|
59 |
movies_watched = st.multiselect("What are your top three fovorite movies? (At least 3 movies)", list_of_all_movies)
|
60 |
|
|
|
76 |
list_of_movies = recomender.final_recommender_hot_picks_of_all_time(movies_watched)
|
77 |
|
78 |
elif system_option == "Trend Movies":
|
|
|
79 |
list_of_movies = recomender.final_recommender_hot_picks_now(movies_watched)
|
80 |
+
|
81 |
+
elif system_option == "Trend Movies","Special for You:)":
|
82 |
list_of_movies = recomender.final_recommender_for_you(movies_watched)
|
83 |
+
|
84 |
+
else:
|
85 |
+
list_of_movies = recomender.recommender_svd(movies_watched)
|
86 |
|
87 |
for i,_ in enumerate(list_of_movies):
|
88 |
show_image(i)
|