Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
nsthorat committed Feb 14, 2024
1 parent 733a3c6 commit 5e64f2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lilac/data/cluster_titling.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from tenacity import retry, retry_if_exception_type, stop_after_attempt, wait_random_exponential

from ..batch_utils import group_by_sorted_key_iter
from ..env import env
from ..schema import (
Item,
)
Expand All @@ -24,7 +25,6 @@
)
from ..tasks import TaskInfo
from ..utils import chunks, log
from ..env import env

_TOP_K_CENTRAL_DOCS = 7
_TOP_K_CENTRAL_TITLES = 20
Expand Down
5 changes: 1 addition & 4 deletions lilac/server_mount_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


@app.get('/')
def read_main():
def read_main() -> dict:
"""The main endpoint."""
return {'message': 'hello world'}

Expand All @@ -25,9 +25,6 @@ def test_mount_root() -> None:
assert response.status_code == 200
assert response.json() == {'message': 'hello world'}

response = client.get(f'{MOUNT_POINT}/', allow_redirects=False)
assert response.status_code == 200


def test_mount_slash_redirect() -> None:
response = client.get(f'{MOUNT_POINT}/auth_info/', allow_redirects=False)
Expand Down

0 comments on commit 5e64f2e

Please sign in to comment.