Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -170,5 +170,30 @@ def recommend_products_for_user(user_id, top_n=1):
|
|
| 170 |
|
| 171 |
# 사용자 맞춤 추천 실행
|
| 172 |
user_id_to_recommend = 1 # 추천할 사용자 ID
|
| 173 |
-
top_n_recommendations =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
recommended_products = recommend_products_for_user(user_id_to_recommend, top_n=top_n_recommendations)
|
|
|
|
| 170 |
|
| 171 |
# 사용자 맞춤 추천 실행
|
| 172 |
user_id_to_recommend = 1 # 추천할 사용자 ID
|
| 173 |
+
top_n_recommendations = 1 # 추천 상품 개수
|
| 174 |
+
recommended_products = recommend_products_for_user(user_id_to_recommend, top_n=top_n_recommendations)
|
| 175 |
+
|
| 176 |
+
# 사용자 맞춤 추천 실행
|
| 177 |
+
user_id_to_recommend = 2 # 추천할 사용자 ID
|
| 178 |
+
top_n_recommendations = 1 # 추천 상품 개수
|
| 179 |
+
recommended_products = recommend_products_for_user(user_id_to_recommend, top_n=top_n_recommendations)
|
| 180 |
+
|
| 181 |
+
# 사용자 맞춤 추천 실행
|
| 182 |
+
user_id_to_recommend = 3 # 추천할 사용자 ID
|
| 183 |
+
top_n_recommendations = 1 # 추천 상품 개수
|
| 184 |
+
recommended_products = recommend_products_for_user(user_id_to_recommend, top_n=top_n_recommendations)
|
| 185 |
+
|
| 186 |
+
# 사용자 맞춤 추천 실행
|
| 187 |
+
user_id_to_recommend = 4 # 추천할 사용자 ID
|
| 188 |
+
top_n_recommendations = 1 # 추천 상품 개수
|
| 189 |
+
recommended_products = recommend_products_for_user(user_id_to_recommend, top_n=top_n_recommendations)
|
| 190 |
+
|
| 191 |
+
# 사용자 맞춤 추천 실행
|
| 192 |
+
user_id_to_recommend = 5 # 추천할 사용자 ID
|
| 193 |
+
top_n_recommendations = 1 # 추천 상품 개수
|
| 194 |
+
recommended_products = recommend_products_for_user(user_id_to_recommend, top_n=top_n_recommendations)
|
| 195 |
+
|
| 196 |
+
# 사용자 맞춤 추천 실행
|
| 197 |
+
user_id_to_recommend = 6 # 추천할 사용자 ID
|
| 198 |
+
top_n_recommendations = 1 # 추천 상품 개수
|
| 199 |
recommended_products = recommend_products_for_user(user_id_to_recommend, top_n=top_n_recommendations)
|