diff --git a/forms-flow-data-analysis-api/README.md b/forms-flow-data-analysis-api/README.md index 6f5784d48d..c2af1d97f2 100644 --- a/forms-flow-data-analysis-api/README.md +++ b/forms-flow-data-analysis-api/README.md @@ -60,7 +60,6 @@ Variable name | Meaning | Possible values | Default value | `DATA_ANALYSIS_DB_PASSWORD` |formsflow data analysis database postgres password|Used on installation to create the database.Choose your own|`changeme` `DATA_ANALYSIS_DB_NAME` |formsflow data analysis database name|Used on installation to create the database.Choose your own|`dataanalysis` `DATA_ANALYSIS_DB_URL` |JDBC DB Connection URL for formsflow||`postgresql://general:changeme@forms-flow-data-analysis-db:5432/dataanalysis` -`DATA_ANALYSIS_API_BASE_URL`:triangular_flag_on_post:|formsflow.ai Data analysis API URL||`http://{your-ip-address}:5001` `MODEL_ID`:triangular_flag_on_post:|formsflow.ai Hugging face model id||`Seethal/sentiment_analysis_generic_dataset` **NOTE : Default realm is `forms-flow-ai`** diff --git a/forms-flow-data-analysis-api/docker-compose.yml b/forms-flow-data-analysis-api/docker-compose.yml index fed2a31db3..96331e159c 100644 --- a/forms-flow-data-analysis-api/docker-compose.yml +++ b/forms-flow-data-analysis-api/docker-compose.yml @@ -38,7 +38,6 @@ services: JWT_OIDC_AUDIENCE: ${KEYCLOAK_WEB_CLIENT_ID:-forms-flow-web} JWT_OIDC_CACHING_ENABLED: 'True' JWT_OIDC_JWKS_CACHE_TIMEOUT: 300 - DATA_ANALYSIS_API_BASE_URL: ${DATA_ANALYSIS_API_BASE_URL} MODEL_ID: ${MODEL_ID:-Seethal/sentiment_analysis_generic_dataset} DATABASE_SUPPORT: ${DATABASE_SUPPORT:-DISABLED} API_LOG_ROTATION_WHEN: ${API_LOG_ROTATION_WHEN:-d} diff --git a/forms-flow-data-analysis-api/sample.env b/forms-flow-data-analysis-api/sample.env index 41d3f4b00c..fcf978c818 100644 --- a/forms-flow-data-analysis-api/sample.env +++ b/forms-flow-data-analysis-api/sample.env @@ -6,7 +6,6 @@ DATA_ANALYSIS_DB_USER=general DATA_ANALYSIS_DB_PASSWORD=changeme DATA_ANALYSIS_DB_NAME=dataanalysis DATA_ANALYSIS_DB_URL=postgresql://general:changeme@forms-flow-data-analysis-db:5432/dataanalysis -DATA_ANALYSIS_API_BASE_URL=http://localhost:5001 MODEL_ID=Seethal/sentiment_analysis_generic_dataset DATABASE_SUPPORT=DISABLED diff --git a/forms-flow-data-analysis-api/src/api/config.py b/forms-flow-data-analysis-api/src/api/config.py index e6772402cc..05c052474a 100644 --- a/forms-flow-data-analysis-api/src/api/config.py +++ b/forms-flow-data-analysis-api/src/api/config.py @@ -69,7 +69,6 @@ class _Config: # pylint: disable=too-few-public-methods JWT_OIDC_CACHING_ENABLED = os.getenv("JWT_OIDC_CACHING_ENABLED") JWT_OIDC_JWKS_CACHE_TIMEOUT = 300 - DATA_ANALYSIS_API_BASE_URL = os.getenv("DATA_ANALYSIS_API_BASE_URL", default="") DATABASE_SUPPORT = os.getenv("DATABASE_SUPPORT", default=Service.DISABLED.value)