Skip to content

Commit

Permalink
deprecate models download
Browse files Browse the repository at this point in the history
  • Loading branch information
marcorosa committed Oct 14, 2021
1 parent c536aef commit c81d1bd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
2 changes: 0 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ POSTGRES_PASSWORD=
POSTGRES_DB=
DBHOST=postgres
DBPORT=5432
path_model=https://github.com/SAP/credential-digger/releases/download/PM-v1.0.1/path_model-1.0.1.tar.gz
snippet_model=https://github.com/SAP/credential-digger/releases/download/SM-v1.0.0/snippet_model-1.0.0.tar.gz
DEBUG=True

# Path to SSL certificate and private key (set them to enable HTTPS in the UI)
Expand Down
2 changes: 0 additions & 2 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ RUN pip install credentialdigger
# Install Gunicorn WSGI HTTP Server
RUN pip install gunicorn

ARG path_model
ARG snippet_model
ARG SSL_certificate
ARG SSL_private_key

Expand Down
18 changes: 1 addition & 17 deletions ui/run.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
#!/bin/bash

echo "Download models..."

if [[ -z "${path_model}" ]]; then
echo "Path model not provided"
else
echo "Running with path_model=$path_model"
python -m credentialdigger download path_model
fi

if [[ -z "${snippet_model}" ]]; then
echo "Snippet model not provided"
else
echo "Running with snippet_model=$snippet_model"
python -m credentialdigger download snippet_model
fi

# Set HTTPS flag to True
HTTPS=true

Expand All @@ -36,4 +20,4 @@ if [[ "$HTTPS" = true ]]; then
else
echo "🔓 HTTPS will not be used... (HTTP only)"
gunicorn -b 0.0.0.0:5000 wsgi:app
fi
fi

0 comments on commit c81d1bd

Please sign in to comment.