Skip to content

Commit

Permalink
Merge pull request #6 from Hexastack/fix/update-env-vars
Browse files Browse the repository at this point in the history
fix: update environment variables
  • Loading branch information
MohamedAliBouhaouala authored Jan 3, 2025
2 parents 0400604 + aeb44a2 commit 1aac994
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 43 deletions.
19 changes: 5 additions & 14 deletions docker/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,16 @@ EMAIL_SMTP_USER=dev_only
EMAIL_SMTP_PASS=dev_only
EMAIL_SMTP_FROM=[email protected]

# NLU Server
AUTH_TOKEN=token123
LANGUAGE_CLASSIFIER=language-classifier
INTENT_CLASSIFIERS=en,fr
TFLC_REPO_ID=Hexastack/tflc
INTENT_CLASSIFIER_REPO_ID=Hexastack/intent-classifier
SLOT_FILLER_REPO_ID=Hexastack/slot-filler
NLU_ENGINE_PORT=5000

# Frontend (Next.js)
NEXT_PUBLIC_API_ORIGIN=http://${APP_DOMAIN}:${API_PORT}/
NEXT_PUBLIC_SSO_ENABLED=false

# Ludwig NLU
# Ludwig NLU Server
HF_AUTH_TOKEN=
MODEL_PATHS='{
"language": "Hexastack/language-classifier-cnn",
"intent": "Hexastack/intent-classifier-lstm"
LUDWIG_MODEL_PATHS='{
"language": "Hexastack/ludwig-language-classifier-cnn",
"intent": "Hexastack/ludwig-intent-classifier-lstm"
}'
LUDWIG_NLU_PORT=8000
LUDWIG_NLU_HOST=0.0.0.0
LUDWIG_NLU_MODE=huggingface
LUDWIG_NLU_MODE=huggingface # Must be either 'local' or 'huggingface'
2 changes: 1 addition & 1 deletion docker/docker-compose.ludwig-nlu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
env_file: ./.env
command: >-
multi_serve
--model_paths '${MODEL_PATHS}' --mode ${LUDWIG_NLU_MODE} --port ${LUDWIG_NLU_PORT} --host ${LUDWIG_NLU_HOST}
--model_paths '${LUDWIG_MODEL_PATHS}' --mode ${LUDWIG_NLU_MODE} --port ${LUDWIG_NLU_PORT} --host ${LUDWIG_NLU_HOST}
volumes:
- ../ludwig-nlu/data:/data
- ../ludwig-nlu/results:/results
Expand Down
28 changes: 0 additions & 28 deletions docker/docker-compose.nlu.yml

This file was deleted.

0 comments on commit 1aac994

Please sign in to comment.