Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -479,6 +479,10 @@ def search_DB_from_multiple_regions(query, selected_regions, region_rag_objects,
|
|
| 479 |
selected_regions = list(region_rag_objects.keys())
|
| 480 |
|
| 481 |
print(f"Translated Query : {query}")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 482 |
|
| 483 |
# 필터가 설정되어 있는지 확인
|
| 484 |
has_filters = any(custom_filters.get(key, []) for key in custom_filters.keys())
|
|
|
|
| 479 |
selected_regions = list(region_rag_objects.keys())
|
| 480 |
|
| 481 |
print(f"Translated Query : {query}")
|
| 482 |
+
|
| 483 |
+
# None일 때 안전하게 처리
|
| 484 |
+
if custom_filters is None:
|
| 485 |
+
custom_filters = {} # 빈 딕셔너리로 대체 (필터 없음 = 전체 검색)
|
| 486 |
|
| 487 |
# 필터가 설정되어 있는지 확인
|
| 488 |
has_filters = any(custom_filters.get(key, []) for key in custom_filters.keys())
|