From fb94ad3780f093043edd0a49aba627102c968f29 Mon Sep 17 00:00:00 2001 From: jzonthemtn Date: Mon, 16 Sep 2024 12:45:22 -0400 Subject: [PATCH 1/3] Adding philter-ui.properties file. --- distribution/philter-ui.properties | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 distribution/philter-ui.properties 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= From e2c4a0da726122a7dba6fdb360c490c864bf294d Mon Sep 17 00:00:00 2001 From: jzonthemtn Date: Mon, 16 Sep 2024 12:56:12 -0400 Subject: [PATCH 2/3] #7 Updating nltk to 3.9.1. --- distribution/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 5130164c822d601ca2b6a57afb830204cb0aea5f Mon Sep 17 00:00:00 2001 From: jzonthemtn Date: Mon, 16 Sep 2024 17:21:44 -0400 Subject: [PATCH 3/3] Adding files to the distribution directory. --- distribution/example-filter.sh | 3 +++ distribution/status.sh | 2 ++ docker-compose.yaml | 3 +++ 3 files changed, 8 insertions(+) create mode 100755 distribution/example-filter.sh create mode 100755 distribution/status.sh 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/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