Spaces:
Runtime error
Runtime error
path fix
Browse files- Dockerfile +1 -1
- config_dev.yaml +7 -7
Dockerfile
CHANGED
|
@@ -36,7 +36,7 @@ RUN python -m pip install -r requirements.txt
|
|
| 36 |
|
| 37 |
COPY . .
|
| 38 |
|
| 39 |
-
RUN mkdir -p /
|
| 40 |
|
| 41 |
|
| 42 |
EXPOSE ${PORT}
|
|
|
|
| 36 |
|
| 37 |
COPY . .
|
| 38 |
|
| 39 |
+
RUN mkdir -p /data/regulation_datasets /data/documents /data/logs
|
| 40 |
|
| 41 |
|
| 42 |
EXPOSE ${PORT}
|
config_dev.yaml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
common:
|
| 2 |
-
log_file_path: !ENV ${LOG_FILE_PATH
|
| 3 |
-
log_sql_path: !ENV ${SQLALCHEMY_DATABASE_URL:sqlite
|
| 4 |
|
| 5 |
bd:
|
| 6 |
faiss:
|
| 7 |
model_embedding_path: !ENV ${EMBEDDING_MODEL_PATH:intfloat/multilingual-e5-large}
|
| 8 |
-
path_to_metadata: !ENV ${PATH_TO_METADATA
|
| 9 |
device: !ENV ${FAISS_DEVICE:cuda}
|
| 10 |
|
| 11 |
elastic:
|
| 12 |
use_elastic: False
|
| 13 |
es_host: !ENV ${ELASTIC_HOST:localhost}
|
| 14 |
es_port: !ENV ${ELASTIC_PORT:9200}
|
| 15 |
-
people_path:
|
| 16 |
|
| 17 |
ranging:
|
| 18 |
use_ranging: false
|
|
@@ -60,9 +60,9 @@ bd:
|
|
| 60 |
|
| 61 |
files:
|
| 62 |
empty_start: true
|
| 63 |
-
regulations_path:
|
| 64 |
-
default_regulations_path:
|
| 65 |
-
documents_path:
|
| 66 |
|
| 67 |
llm:
|
| 68 |
base_url: !ENV ${LLM_BASE_URL:https://api.deepinfra.com}
|
|
|
|
| 1 |
common:
|
| 2 |
+
log_file_path: !ENV ${LOG_FILE_PATH:/data/logs/common.log}
|
| 3 |
+
log_sql_path: !ENV ${SQLALCHEMY_DATABASE_URL:sqlite:////data/logs.db}
|
| 4 |
|
| 5 |
bd:
|
| 6 |
faiss:
|
| 7 |
model_embedding_path: !ENV ${EMBEDDING_MODEL_PATH:intfloat/multilingual-e5-large}
|
| 8 |
+
path_to_metadata: !ENV ${PATH_TO_METADATA:/data/regulation_datasets}
|
| 9 |
device: !ENV ${FAISS_DEVICE:cuda}
|
| 10 |
|
| 11 |
elastic:
|
| 12 |
use_elastic: False
|
| 13 |
es_host: !ENV ${ELASTIC_HOST:localhost}
|
| 14 |
es_port: !ENV ${ELASTIC_PORT:9200}
|
| 15 |
+
people_path: /data/person_card
|
| 16 |
|
| 17 |
ranging:
|
| 18 |
use_ranging: false
|
|
|
|
| 60 |
|
| 61 |
files:
|
| 62 |
empty_start: true
|
| 63 |
+
regulations_path: /data/regulation_datasets
|
| 64 |
+
default_regulations_path: /data/regulation_datasets/default
|
| 65 |
+
documents_path: /data/documents
|
| 66 |
|
| 67 |
llm:
|
| 68 |
base_url: !ENV ${LLM_BASE_URL:https://api.deepinfra.com}
|