From ebb9000766561c349a1f61967578f96f11208110 Mon Sep 17 00:00:00 2001 From: Zack Date: Sun, 10 Dec 2023 20:22:59 -0800 Subject: [PATCH] feat: add toolui.py --- tests/tools/toolui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/tools/toolui.py b/tests/tools/toolui.py index e722f6ce..0ab6dd00 100644 --- a/tests/tools/toolui.py +++ b/tests/tools/toolui.py @@ -14,10 +14,11 @@ from swarms.modelui.modules.models import load_model from swarms.tools.tool_controller import ToolInfo import dotenv -os.environ.get("") +os.environ.get(".env") current_dir = os.path.dirname(os.path.abspath(__file__)) -sys.path.insert(0, os.path.join(current_dir, "..")) +parent_dir = os.path.dirname(current_dir) +sys.path.insert(0, parent_dir) HOST = "localhost" PORT = 8000