Compare commits
No commits in common. "main" and "searchables" have entirely different histories.
main
...
searchable
2 changed files with 2 additions and 2 deletions
2
app.py
2
app.py
|
@ -43,7 +43,7 @@ app_ui = ui.page_navbar(
|
||||||
),
|
),
|
||||||
align="right",
|
align="right",
|
||||||
),
|
),
|
||||||
selected="intro",
|
selected="search_engine",
|
||||||
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")),
|
||||||
|
|
|
@ -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, 0
|
return None
|
||||||
|
|
||||||
if limit == -1:
|
if limit == -1:
|
||||||
limit = len(result)
|
limit = len(result)
|
||||||
|
|
Loading…
Reference in a new issue