Skip to content

Commit

Permalink
QUIET added
Browse files Browse the repository at this point in the history
  • Loading branch information
3x3cut0r committed Feb 18, 2024
1 parent a87f02e commit c76d376
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion privategpt/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ ENV ENV_NAME="prod" \
CORS_ALLOW_HEADERS="*" \
AUTH_ENABLED="false" \
AUTH_USERNAME="secret" \
AUTH_SECRET="Basic c2VjcmV0OmtleQ=="
AUTH_SECRET="Basic c2VjcmV0OmtleQ==" \
QUIET="false"

VOLUME /home/worker/app/local_data
VOLUME /home/worker/app/models
Expand Down
7 changes: 6 additions & 1 deletion privategpt/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@ sed -i "75s|^.*$| model: ${OLLAMA_MODEL:-"mistral:latest"}|" /home/worker/app/s
############################

# run privategpt setup to download models
/home/worker/app/.venv/bin/python scripts/setup
if [ "$QUIET" = "true" ]; then
/home/worker/app/.venv/bin/python scripts/setup > /dev/null 2>&1
else
/home/worker/app/.venv/bin/python scripts/setup
fi


# if started without args, run privategpt
if [ "$#" = "0" ]; then
Expand Down

0 comments on commit c76d376

Please sign in to comment.