Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -162,11 +162,11 @@ def recommend_products_for_user(user_id, top_n=1):
|
|
162 |
print(f"Error during recommendation for User ID {user_id}: {e}")
|
163 |
return []
|
164 |
|
165 |
-
print(f"user_embedding shape: {user_embedding.shape}")
|
166 |
-
print(f"product_embeddings shape: {product_embeddings.shape}")
|
167 |
-
|
168 |
|
169 |
# 사용자 맞춤 추천 실행
|
170 |
user_id_to_recommend = 1 # 추천할 사용자 ID
|
171 |
top_n_recommendations = 1 # 추천 상품 개수
|
172 |
-
recommended_products = recommend_products_for_user(user_id_to_recommend, top_n=top_n_recommendations)
|
|
|
|
|
|
|
|
162 |
print(f"Error during recommendation for User ID {user_id}: {e}")
|
163 |
return []
|
164 |
|
|
|
|
|
|
|
165 |
|
166 |
# 사용자 맞춤 추천 실행
|
167 |
user_id_to_recommend = 1 # 추천할 사용자 ID
|
168 |
top_n_recommendations = 1 # 추천 상품 개수
|
169 |
+
recommended_products = recommend_products_for_user(user_id_to_recommend, top_n=top_n_recommendations)
|
170 |
+
|
171 |
+
print(f"user_embedding shape: {user_embedding.shape}")
|
172 |
+
print(f"product_embeddings shape: {product_embeddings.shape}")
|