Skip to content

Commit

Permalink
Fix port on HF demo since we use app_port: 5432 (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmilkov authored Oct 12, 2023
1 parent 9181512 commit 950e510
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lilac/hf_docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion lilac/hf_docker/docker_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions scripts/deploy_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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.
Expand Down

0 comments on commit 950e510

Please sign in to comment.