diff --git a/.gitignore b/.gitignore index 9f6e25b6..65ce495c 100644 --- a/.gitignore +++ b/.gitignore @@ -224,3 +224,52 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ .vscode/settings.json +# -*- mode: gitignore; -*- +*~ +\#*\# +/.emacs.desktop +/.emacs.desktop.lock +*.elc +auto-save-list +tramp +.\#* + +# Org-mode +.org-id-locations +*_archive + +# flymake-mode +*_flymake.* + +# eshell files +/eshell/history +/eshell/lastdir + +# elpa packages +/elpa/ + +# reftex files +*.rel + +# AUCTeX auto folder +/auto/ + +# cask packages +.cask/ +dist/ + +# Flycheck +flycheck_*.el + +# server auth directory +/server/ + +# projectiles files +.projectile + +# directory configuration +.dir-locals.el + +# network security +/network-security.data + diff --git a/api/agent_api.py b/api/main.py similarity index 98% rename from api/agent_api.py rename to api/main.py index d1968d9d..768e8d96 100644 --- a/api/agent_api.py +++ b/api/main.py @@ -21,6 +21,7 @@ import traceback from swarms import Agent from dotenv import load_dotenv +print ("starting") # Load environment variables load_dotenv() @@ -613,17 +614,25 @@ class SwarmsAPI: def create_app() -> FastAPI: """Create and configure the FastAPI application.""" + print("create app") api = SwarmsAPI() return api.app -if __name__ == "__main__": +#if __name__ == "__main__": +if __name__ == '__main__': + #freeze_support() + print("yes in main") # Configure uvicorn logging logger.info("API Starting") + uvicorn.run( "main:create_app", host="0.0.0.0", port=8000, - reload=True, - workers=4, + # reload=True, + # workers=4, ) +else: + print("not in main") +