Skip to content

Commit

Permalink
fix default
Browse files Browse the repository at this point in the history
  • Loading branch information
andreer committed Oct 10, 2024
1 parent f7c5813 commit 83dd773
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions visual-retrieval-colpali/frontend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
)


def SearchBox(with_border=False, query_value="", ranking_value="option1"):
def SearchBox(with_border=False, query_value="", ranking_value="nn+colpali"):
grid_cls = "grid gap-2 items-center p-3 bg-muted/80 dark:bg-muted/40 w-full"

if with_border:
Expand Down Expand Up @@ -176,7 +176,7 @@ def Home():

def Search(request, search_results=[]):
query_value = request.query_params.get("query", "").strip()
ranking_value = request.query_params.get("ranking", "option1")
ranking_value = request.query_params.get("ranking", "nn+colpali")
print(
f"Search: Fetching results for query: {query_value}, ranking: {ranking_value}"
)
Expand Down
2 changes: 1 addition & 1 deletion visual-retrieval-colpali/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def get():
def get(request):
# Extract the 'query' and 'ranking' parameters from the URL
query_value = request.query_params.get("query", "").strip()
ranking_value = request.query_params.get("ranking", "option1")
ranking_value = request.query_params.get("ranking", "nn+colpali")
print("/search: Fetching results for ranking_value:", ranking_value)

# Always render the SearchBox first
Expand Down

0 comments on commit 83dd773

Please sign in to comment.