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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,6 +23,9 @@ max_height = 250
23
  min_weight = 30
24
  max_weight = 200
25
 
 
 
 
26
  # 상품 타워: 데이터 임베딩
27
  def embed_product_data(product_data):
28
  # 상품명과 상세 정보 임베딩 (BERT)
@@ -156,8 +159,5 @@ 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
- 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)
 
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)
 
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)