waseoke commited on
Commit
bdde224
·
verified ·
1 Parent(s): a8debea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -23,9 +23,6 @@ max_height = 250
23
  min_weight = 30
24
  max_weight = 200
25
 
26
- user_embedding = np.array(user_embedding) # Ensure numpy array
27
- product_embeddings = np.array(product_embeddings) # Ensure numpy array
28
-
29
  # 상품 타워: 데이터 임베딩
30
  def embed_product_data(product_data):
31
  # 상품명과 상세 정보 임베딩 (BERT)
@@ -157,7 +154,4 @@ def recommend_products_for_user(user_id, top_n=1):
157
  # 사용자 맞춤 추천 실행
158
  user_id_to_recommend = 1 # 추천할 사용자 ID
159
  top_n_recommendations = 1 # 추천 상품 개수
160
- recommended_products = recommend_products_for_user(user_id_to_recommend, top_n=top_n_recommendations)
161
-
162
- print(user_embedding.shape)
163
- print(product_embeddings.shape)
 
23
  min_weight = 30
24
  max_weight = 200
25
 
 
 
 
26
  # 상품 타워: 데이터 임베딩
27
  def embed_product_data(product_data):
28
  # 상품명과 상세 정보 임베딩 (BERT)
 
154
  # 사용자 맞춤 추천 실행
155
  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)