From 950e5107522ea08e94a692a72bd58ba065f9fcd7 Mon Sep 17 00:00:00 2001 From: Daniel Smilkov Date: Wed, 11 Oct 2023 20:25:25 -0400 Subject: [PATCH] Fix port on HF demo since we use app_port: 5432 (#759) --- lilac/hf_docker/Dockerfile | 2 +- lilac/hf_docker/docker_start.sh | 2 +- scripts/deploy_demo.py | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lilac/hf_docker/Dockerfile b/lilac/hf_docker/Dockerfile index a3a564cdb..4dddfa927 100644 --- a/lilac/hf_docker/Dockerfile +++ b/lilac/hf_docker/Dockerfile @@ -42,5 +42,5 @@ COPY --chown=user docker_start.sh ./ RUN mkdir -p ./data RUN chown -R user ./data -EXPOSE 8000 +EXPOSE 5432 CMD ["bash", "docker_start.sh"] diff --git a/lilac/hf_docker/docker_start.sh b/lilac/hf_docker/docker_start.sh index 895dd85e7..18c02529e 100755 --- a/lilac/hf_docker/docker_start.sh +++ b/lilac/hf_docker/docker_start.sh @@ -5,6 +5,6 @@ set -e lilac hf-docker-start gunicorn lilac.server:app \ - --bind 0.0.0.0:8000 \ + --bind 0.0.0.0:5432 \ --preload -k uvicorn.workers.UvicornWorker \ --timeout 120 diff --git a/scripts/deploy_demo.py b/scripts/deploy_demo.py index 0a31414ac..3c2bb5aaa 100755 --- a/scripts/deploy_demo.py +++ b/scripts/deploy_demo.py @@ -3,8 +3,7 @@ This script will, in order: 1) Sync from the HuggingFace space data (only datasets). (--skip_sync to skip syncing) 2) Load the data from the lilac_hf_space.yml config. (--skip_load to skip loading) -3) Build the web server TypeScript. (--skip_build to skip building) -4) Push code & data to the HuggingFace space. +3) Push data to the HuggingFace space. Usage: poetry run python -m scripts.deploy_demo \ @@ -16,7 +15,6 @@ --skip_sync to skip syncing data from the HuggingFace space data. --skip_load to skip loading the data. --load_overwrite to run all data from scratch, overwriting existing data. - --skip_build to skip building the web server TypeScript. --skip_data_upload to skip uploading data. This will use the datasets already on the space. --skip_deploy to skip deploying to HuggingFace. Useful to test locally.