fix: import run server in serve command

This commit is contained in:
arkohut 2024-09-16 10:18:40 +08:00
parent 805414d94f
commit 7b346b9e25

View File

@ -7,7 +7,6 @@ from typing import List, Tuple
import httpx
import typer
from .server import run_server
from .read_metadata import read_metadata
from .schemas import MetadataSource
from tabulate import tabulate
@ -90,6 +89,7 @@ def serve():
db_success = init_database()
ts_success = init_typesense()
if db_success and ts_success:
from .server import run_server
run_server()
else:
print("Server initialization failed. Unable to start the server.")