diff --git a/distribution/example-filter.sh b/distribution/example-filter.sh new file mode 100755 index 0000000..f6edffe --- /dev/null +++ b/distribution/example-filter.sh @@ -0,0 +1,3 @@ +#!/bin/bash +curl -k "https://localhost:8080/api/filter" \ + --data "George Washington was president and his ssn was 123-45-6789 and he lived in 90210." -H "Content-type: text/plain" diff --git a/distribution/philter-ui.properties b/distribution/philter-ui.properties new file mode 100644 index 0000000..2499fb6 --- /dev/null +++ b/distribution/philter-ui.properties @@ -0,0 +1,10 @@ +# General configuration +server.port=9000 +philter.endpoint=https://philter:8080 +client.timeout=60000 + +# SSL configuration +client.ssl.keystore= +client.ssl.keystore.password= +client.ssl.truststore= +client.ssl.truststore.password= diff --git a/distribution/requirements.txt b/distribution/requirements.txt index 5e94e90..3fd89c4 100644 --- a/distribution/requirements.txt +++ b/distribution/requirements.txt @@ -9,7 +9,7 @@ wheel==0.41.2 numpy==1.24.4 textblob==0.17.1 CherryPy==18.8.0 -nltk==3.9 +nltk==3.9.1 scipy==1.10.1 # SPECIAL DEPENDENCIES diff --git a/distribution/status.sh b/distribution/status.sh new file mode 100755 index 0000000..5f6a86c --- /dev/null +++ b/distribution/status.sh @@ -0,0 +1,2 @@ +#!/bin/bash +curl -k https://localhost:8080/api/status diff --git a/docker-compose.yaml b/docker-compose.yaml index e6a06dd..b18f571 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -13,6 +13,9 @@ services: - "8080:8080" networks: - philter + # runtime: nvidia + # environment: + # - NVIDIA_VISIBLE_DEVICES=all philter-ui: depends_on: - philter-ner