Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -413,7 +413,7 @@ def semantic_search(query, n_results=5, year_filter=None, department_filter=None
|
|
| 413 |
# Build filter
|
| 414 |
where_filter = {}
|
| 415 |
if year_filter and year_filter != "All":
|
| 416 |
-
where_filter["year"] = {"$gte": year_filter}
|
| 417 |
if department_filter and department_filter != "All":
|
| 418 |
where_filter["department"] = {"$eq": department_filter}
|
| 419 |
if author_filter and author_filter != "All":
|
|
|
|
| 413 |
# Build filter
|
| 414 |
where_filter = {}
|
| 415 |
if year_filter and year_filter != "All":
|
| 416 |
+
where_filter["year"] = {"$gte": int(year_filter)}
|
| 417 |
if department_filter and department_filter != "All":
|
| 418 |
where_filter["department"] = {"$eq": department_filter}
|
| 419 |
if author_filter and author_filter != "All":
|