Skip to content

Commit

Permalink
Housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Harris committed May 10, 2024
1 parent 7dbc6d3 commit 33d7527
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tmp
ingestion/api/hapi/*
ingestion/api/hdx/*
.vscode
code-interpretor/static/*
code-interpreter/static/*
actions/actions_plugins/recipe-server/images
__pycache__
ui/recipes_assistant_chat/datadb
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ TODO: This will be automated, but for now ...
2. Select "Plugins' endpoint at top, then in the plugin box go to store and activate
- Humanitariuan Data Assistant
- Humanitarian Data Recipes
- Code sherpa, when asked enter URL http://code-interpretor:3333
- Code sherpa, when asked enter URL http://code-interpreter:3333
3. Populate system prompts, see `./assistant/recipes_assistant/prompts`, build presets
2. Log in
3. `docker exec -it haa-ingestion /bin/bash`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ALWAYS save image files code interpreter creates into directory './static/images

ALWAYS save csv and excel files code interpreter creates into directory './static/files'

ALWAYS replace 'code-interpretor' in URLs with 'localhost'
ALWAYS replace 'code-interpreter' in URLs with 'localhost'

Always adjust existing plots by regenerating Python code

Expand Down
2 changes: 1 addition & 1 deletion code-interpretor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ WORKDIR /app
RUN git clone https://github.com/iamgreggarcia/codesherpa.git
RUN mv codesherpa/* /app/

COPY ./code-interpretor/pyproject.toml /app/
COPY ./code-interpreter/pyproject.toml /app/
RUN rm ./poetry.lock

RUN pip install --no-cache-dir poetry
Expand Down
2 changes: 1 addition & 1 deletion deployment/deploy_azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def deploy():
"actions",
],
"busybox": [f"{container_registry}/{repo}", "init"],
"humanitarian_ai_assistant-code-interpretor": [
"humanitarian_ai_assistant-code-interpreter": [
f"{container_registry}/{repo}",
"code-interpreter",
],
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker-compose-azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ services:
# user: "root"
# depends_on:
# - actions
code-interpretor:
code-interpreter:
image: dkdsprototypesreg01.azurecr.io/humanitarian-ai-assistant:code-interpreter
volumes:
- ${WEBAPP_STORAGE_HOME}/shared-data:/app/static
8 changes: 4 additions & 4 deletions deployment/docker-compose-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,17 @@ services:
# - type: bind
# source: ./ingestion
# target: /app
code-interpretor:
code-interpreter:
#image: ghcr.io/iamgreggarcia/codesphera:latest
platform: linux/amd64
container_name: haa-code-interpretor
container_name: haa-code-interpreter
build:
context: .
dockerfile: ./code-interpretor/Dockerfile
dockerfile: ./code-interpreter/Dockerfile
ports:
- "3333:3333"
#volumes:
# - ./code-interpretor/static:/app/static
# - ./code-interpreter/static:/app/static

volumes:
pgdata2:
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ services:
- type: bind
source: ./utils
target: /app/utils
code-interpretor:
code-interpreter:
# image: ghcr.io/iamgreggarcia/codesphera:latest
container_name: haa-code-interpretor
container_name: haa-code-interpreter
build:
context: .
dockerfile: ./code-interpretor/Dockerfile
dockerfile: ./code-interpreter/Dockerfile
ports:
- "3333:3333"
volumes:
Expand Down

0 comments on commit 33d7527

Please sign in to comment.