Compare commits

...

2 commits

2 changed files with 2 additions and 2 deletions

2
app.py
View file

@ -43,7 +43,7 @@ app_ui = ui.page_navbar(
), ),
align="right", align="right",
), ),
selected="search_engine", selected="intro",
fluid=False, fluid=False,
title=ui.div(ui.img(src="favicon.ico", width="75dpi", height="75dpi"), title=ui.div(ui.img(src="favicon.ico", width="75dpi", height="75dpi"),
ui.h1("Copbird")), ui.h1("Copbird")),

View file

@ -58,7 +58,7 @@ def search_query(query: str, limit: int = 5, sorting_method: str = "score") -> (
result = tweets.iloc[correct_indices] result = tweets.iloc[correct_indices]
if not len(result): if not len(result):
return None return None, 0
if limit == -1: if limit == -1:
limit = len(result) limit = len(result)