Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -137,8 +137,10 @@ def analyze_query_and_find_products(query: str) -> str:
|
|
| 137 |
description = analysis_json["analysis"] # 取得分析結果
|
| 138 |
ingredients = analysis_json["ingredients"] # 取得提取的食材清單
|
| 139 |
|
| 140 |
-
print("
|
| 141 |
-
|
|
|
|
|
|
|
| 142 |
# Generate embedding for the query
|
| 143 |
query_embedding = get_embedding(query + " " + description)
|
| 144 |
|
|
|
|
| 137 |
description = analysis_json["analysis"] # 取得分析結果
|
| 138 |
ingredients = analysis_json["ingredients"] # 取得提取的食材清單
|
| 139 |
|
| 140 |
+
print("=======")
|
| 141 |
+
print("關鍵字陣列:")
|
| 142 |
+
print(ingredients)
|
| 143 |
+
print("=======")
|
| 144 |
# Generate embedding for the query
|
| 145 |
query_embedding = get_embedding(query + " " + description)
|
| 146 |
|