Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|