Harsh502s commited on
Commit
7e008b9
·
1 Parent(s): 91becc1
Files changed (1) hide show
  1. Pages/Recommender App.py +8 -8
Pages/Recommender App.py CHANGED
@@ -17,16 +17,16 @@ anime_data, anime_posters = load_data()
17
 
18
 
19
  # Uncomment this if you want to load the model
20
- # @st.cache_resource
21
- # def load_model():
22
- # try:
23
- # similarity = pickle.load(open(r"../similarity_matrix.pkl", "rb"))
24
- # except:
25
- # st.error("Model Not Found")
26
- # return similarity
27
 
28
 
29
- # similarity = load_model()
30
 
31
 
32
  # Fetching the poster and url of the anime
 
17
 
18
 
19
  # Uncomment this if you want to load the model
20
+ @st.cache_resource
21
+ def load_model():
22
+ try:
23
+ similarity = pickle.load(open(r"similarity_matrix.pkl", "rb"))
24
+ except:
25
+ st.error("Model Not Found")
26
+ return similarity
27
 
28
 
29
+ similarity = load_model()
30
 
31
 
32
  # Fetching the poster and url of the anime