MohamedMotaz commited on
Commit
d98a3d8
1 Parent(s): b316254

Adding app file

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -132,7 +132,7 @@ ratingsCSV = "Data/ratings.csv"
132
  linksCSV = "Data/links.csv"
133
 
134
  # the folloing code is used to download the similarity matrix from google drive if not exist
135
- file_url = 'https://drive.google.com/file/d/1-1bpusE96_Hh0rUxU7YmBo6RiwYLQGVy/view?usp=sharing'
136
  output_path = 'Models/similarity_matrix.pkl'
137
 
138
  @st.cache_data
@@ -325,12 +325,12 @@ def recommend(movie, similarity_df, movies_df, ratings_df, links_df, k=5):
325
 
326
  # Main app
327
 
 
 
 
 
328
  def main():
329
 
330
- movies_df, ratings_df, links_df = load_data()
331
- print("Data loaded successfully")
332
- print("Loading similarity matrix...")
333
- similarity_df = load_similarity_matrix()
334
 
335
  st.sidebar.title("Navigation")
336
  menu = ["Login", "Movie Similarity"]
 
132
  linksCSV = "Data/links.csv"
133
 
134
  # the folloing code is used to download the similarity matrix from google drive if not exist
135
+ file_url = 'https://drive.google.com/uc?id=1-1bpusE96_Hh0rUxU7YmBo6RiwYLQGVy'
136
  output_path = 'Models/similarity_matrix.pkl'
137
 
138
  @st.cache_data
 
325
 
326
  # Main app
327
 
328
+ movies_df, ratings_df, links_df = load_data()
329
+ print("Data loaded successfully")
330
+ print("Loading similarity matrix...")
331
+ similarity_df = load_similarity_matrix()
332
  def main():
333
 
 
 
 
 
334
 
335
  st.sidebar.title("Navigation")
336
  menu = ["Login", "Movie Similarity"]