Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -147,7 +147,7 @@ def analyze_query_and_find_products(query: str) -> str:
|
|
| 147 |
search_results = []
|
| 148 |
for item in ingredients:
|
| 149 |
print(f"正在搜尋:{item}")
|
| 150 |
-
query_embedding = get_embedding(
|
| 151 |
matching_products = find_similar_products(query_embedding) # 搜索結果
|
| 152 |
search_results.append((item, matching_products))
|
| 153 |
|
|
|
|
| 147 |
search_results = []
|
| 148 |
for item in ingredients:
|
| 149 |
print(f"正在搜尋:{item}")
|
| 150 |
+
query_embedding = get_embedding(item) # 生成食材嵌入
|
| 151 |
matching_products = find_similar_products(query_embedding) # 搜索結果
|
| 152 |
search_results.append((item, matching_products))
|
| 153 |
|