Skip to content

Commit

Permalink
#8 Renaming philter-ner to ph-eye.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Sep 24, 2024
1 parent 15b2998 commit 86ae95a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion distribution/philter.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# General configuration
server.port=8080
logging.level.root=INFO
ner.endpoint=http://philter-ner:18080
ner.endpoint=http://ph-eye:18080

# Span Disambiguation
span.disambiguation.enabled=false
Expand Down
13 changes: 8 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
services:
philter-ner:
image: philterd/philter-ner:2.5.0-general-lite-3.0
ph-eye:
image: philterd/ph-eye:1.0.0
ports:
- "8000:18080"
- "18080:5000"
networks:
- philter
environment:
model_name: "urchade/gliner_medium-v2.1"
philter:
depends_on:
- philter-ner
- ph-eye
image: philterd/philter:2.5.0
environment:
ner.endpoint: http://ph-eye:18080/
ports:
- "8080:8080"
networks:
Expand All @@ -18,7 +22,6 @@ services:
# - NVIDIA_VISIBLE_DEVICES=all
philter-ui:
depends_on:
- philter-ner
- philter
image: philterd/philter-ui:2.5.0
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public abstract class AbstractController {

protected String getPythonRESTServiceStatus(String philterNerEndpoint) {

LOGGER.trace("Retrieving philter-ner status.");
LOGGER.trace("Retrieving ph-eye status.");

final HttpClient client = HttpClientBuilder.create().build();

Expand All @@ -42,12 +42,12 @@ protected String getPythonRESTServiceStatus(String philterNerEndpoint) {
if (entity != null) {

final String response = EntityUtils.toString(entity);
LOGGER.debug("philter-ner status response: {}", response);
LOGGER.debug("ph-eye status response: {}", response);
return response;

} else {

LOGGER.debug("Received empty response from philter-ner status.");
LOGGER.debug("Received empty response from ph-eye status.");

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public ResponseEntity<String> status() throws IOException {

final String health = getPythonRESTServiceStatus(phileasConfiguration.nerEndpoint());

LOGGER.info("philter-ner status is: {}", health);
LOGGER.info("ph-eye status is: {}", health);

if(health.startsWith("healthy:")) {

Expand Down

0 comments on commit 86ae95a

Please sign in to comment.