Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -697,10 +697,10 @@ def gradio_interface(user_input):
|
|
| 697 |
yield all_querys_summary, "⏳ 正在從資料庫中檢索資訊..."
|
| 698 |
# ... (此處省略查詢邏輯,與原 reflect_post 相同) ...
|
| 699 |
context_list = []
|
| 700 |
-
|
| 701 |
-
|
| 702 |
-
|
| 703 |
-
|
| 704 |
|
| 705 |
if not table_name or not params:
|
| 706 |
context_list.append(f"【{sub_query}】\n查詢失敗:未能匹配到資料表或解析參數。")
|
|
|
|
| 697 |
yield all_querys_summary, "⏳ 正在從資料庫中檢索資訊..."
|
| 698 |
# ... (此處省略查詢邏輯,與原 reflect_post 相同) ...
|
| 699 |
context_list = []
|
| 700 |
+
for q in direct_queries:
|
| 701 |
+
sub_query = q["sub_query"]
|
| 702 |
+
table_name = table_map.get(sub_query)
|
| 703 |
+
params = params_map.get(sub_query)
|
| 704 |
|
| 705 |
if not table_name or not params:
|
| 706 |
context_list.append(f"【{sub_query}】\n查詢失敗:未能匹配到資料表或解析參數。")
|