Skip to content

Commit

Permalink
Cont. of Previous Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
OdyAsh committed Nov 7, 2024
1 parent 35d8eca commit ec76cf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from agents.ansari import Ansari
from ansari_db import AnsariDB, MessageLogger
from config import Settings, get_settings
from main_whatsapp import router as whatsapp_router
from presenters.api_presenter import ApiPresenter

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -51,6 +52,9 @@ def add_app_middleware():

cache = FanoutCache(get_settings().diskcache_dir, shards=4, timeout=1)

# Include the WhatsApp router
app.include_router(whatsapp_router)

if __name__ == "__main__" and get_settings().LOGGING_LEVEL.upper() == "DEBUG":
# Programatically start a Uvicorn server while debugging (development) for easier control/accessibility
# Note: if you instead run
Expand Down

0 comments on commit ec76cf1

Please sign in to comment.