From bf50a68eb56a7348dfcc869c4e7f43afc51117df Mon Sep 17 00:00:00 2001 From: mauwii Date: Tue, 25 Oct 2022 00:05:52 +0200 Subject: [PATCH] update entrypoint - when run without arguments it starts the web-interface - can also be run with your own arguments - if u do so it does not start web unless u do --- docker-build/entrypoint.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docker-build/entrypoint.sh b/docker-build/entrypoint.sh index f47e6669e0..7c0ca12f88 100755 --- a/docker-build/entrypoint.sh +++ b/docker-build/entrypoint.sh @@ -1,10 +1,8 @@ #!/bin/bash +set -e -cd /stable-diffusion +source "${CONDA_PREFIX}/etc/profile.d/conda.sh" +conda activate "${PROJECT_NAME}" -if [ $# -eq 0 ]; then - python3 scripts/dream.py --full_precision -o /data - # bash -else - python3 scripts/dream.py --full_precision -o /data "$@" -fi \ No newline at end of file +python scripts/invoke.py \ + ${@:---web --host=0.0.0.0}