waseoke commited on
Commit
2a0a222
·
verified ·
1 Parent(s): f4f46dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -156,5 +156,8 @@ user_id_to_recommend = 1 # 추천할 사용자 ID
156
  top_n_recommendations = 1 # 추천 상품 개수
157
  recommended_products = recommend_products_for_user(user_id_to_recommend, top_n=top_n_recommendations)
158
 
 
 
 
159
  print(user_embedding.shape)
160
  print(product_embeddings.shape)
 
156
  top_n_recommendations = 1 # 추천 상품 개수
157
  recommended_products = recommend_products_for_user(user_id_to_recommend, top_n=top_n_recommendations)
158
 
159
+ user_embedding = np.array(user_embedding) # Ensure numpy array
160
+ product_embeddings = np.array(product_embeddings) # Ensure numpy array
161
+
162
  print(user_embedding.shape)
163
  print(product_embeddings.shape)