Update config.py
Browse files
config.py
CHANGED
|
@@ -14,6 +14,12 @@ def save_config(data_path, persist_directory, collection_name):
|
|
| 14 |
This function accepts arguments and writes them to a config.json file.
|
| 15 |
Sensitive data (e.g., API keys) are not written to the file.
|
| 16 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
config = {
|
| 18 |
'data_path': data_path,
|
| 19 |
'persist_directory': persist_directory,
|
|
|
|
| 14 |
This function accepts arguments and writes them to a config.json file.
|
| 15 |
Sensitive data (e.g., API keys) are not written to the file.
|
| 16 |
"""
|
| 17 |
+
# Default paths
|
| 18 |
+
if data_path is None:
|
| 19 |
+
data_path = '/tmp/data'
|
| 20 |
+
if persist_directory is None:
|
| 21 |
+
persist_directory = '/tmp/db'
|
| 22 |
+
|
| 23 |
config = {
|
| 24 |
'data_path': data_path,
|
| 25 |
'persist_directory': persist_directory,
|