From 8b62119cb24bc1a894309a4d54a6a1c31464ba4e Mon Sep 17 00:00:00 2001 From: Sam Partee Date: Fri, 26 Apr 2024 15:37:15 -0700 Subject: [PATCH] CLI fix --- toolserve/toolserve/cli/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/toolserve/toolserve/cli/main.py b/toolserve/toolserve/cli/main.py index 351579e0..9794df67 100644 --- a/toolserve/toolserve/cli/main.py +++ b/toolserve/toolserve/cli/main.py @@ -7,8 +7,6 @@ from rich.console import Console from rich.markup import escape from toolserve.server.core.conf import settings -from toolserve.server.main import app -from toolserve.apm.pack import Packer cli = typer.Typer() @@ -31,6 +29,8 @@ def serve( Starts the server with host, port, and reload options. Uses Uvicorn as ASGI server. Parameters allow runtime configuration. """ + from toolserve.server.main import app + try: uvicorn.run( app=app, @@ -56,6 +56,8 @@ def pack( """ Creates a new tool pack with the given name, description, and result type. """ + from toolserve.apm.pack import Packer + try: pack = Packer(directory) pack.create_pack()