Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed Feb 20, 2024
1 parent 3a50395 commit c3a1519
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
2 changes: 0 additions & 2 deletions api/routes/v1_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
from api.routes.status import status_router
from api.routes.assistants import assistants_router
from api.routes.hn import hn_router
from api.routes.arxiv_discord import arxiv_discord_router

v1_router = APIRouter(prefix="/v1")
v1_router.include_router(status_router)
v1_router.include_router(assistants_router)
v1_router.include_router(hn_router)
v1_router.include_router(assistants_router)
v1_router.include_router(arxiv_discord_router)
4 changes: 2 additions & 2 deletions scripts/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ main() {
print_heading "Validating workspace..."
print_heading "Running: mypy ${REPO_ROOT}"
mypy ${REPO_ROOT}
print_heading "Running: pytest ${REPO_ROOT}"
pytest ${REPO_ROOT}
print_heading "Running: pytest"
pytest
print_heading "Running: ruff check ${REPO_ROOT}"
ruff check ${REPO_ROOT}
}
Expand Down
17 changes: 16 additions & 1 deletion workspace/dev_resources.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from os import getenv

from phi.docker.app.base import DockerApp
from phi.docker.app.fastapi import FastApi
from phi.docker.app.postgres import PgVectorDb
from phi.docker.app.streamlit import Streamlit
Expand Down Expand Up @@ -138,12 +139,26 @@
# depends_on=[dev_db],
)

# -*- Arxiv Discord Bot
arxiv_bot = DockerApp(
name=f"arxiv-bot-{ws_settings.ws_name}",
image=dev_image,
enabled=getenv("ARXIV_BOT", False),
command="python arxiv_ai/ls/bot.py",
debug_mode=True,
mount_workspace=True,
env_vars=container_env,
use_cache=ws_settings.use_cache,
# Read secrets from secrets/dev_app_secrets.yml
secrets_file=ws_settings.ws_root.joinpath("workspace/secrets/dev_app_secrets.yml"),
)

# -*- Update jupyter environment variables
dev_jupyter_app.env_vars = container_env

# -*- Dev DockerResources
dev_docker_resources = DockerResources(
env=ws_settings.dev_env,
network=ws_settings.ws_name,
apps=[dev_db, dev_streamlit, hn_ai, pdf_ai, arxiv_ai, dev_fastapi, dev_jupyter_app],
apps=[dev_db, dev_streamlit, hn_ai, pdf_ai, arxiv_ai, dev_fastapi, dev_jupyter_app, arxiv_bot],
)
1 change: 1 addition & 0 deletions workspace/prd_resources.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from os import getenv

from phi.aws.app.base import AwsApp
from phi.aws.app.fastapi import FastApi
from phi.aws.app.streamlit import Streamlit
from phi.aws.resources import AwsResources
Expand Down

0 comments on commit c3a1519

Please sign in to comment.