Spaces:
Sleeping
Sleeping
Update app/core/config.py
Browse files- app/core/config.py +3 -7
app/core/config.py
CHANGED
|
@@ -11,13 +11,9 @@ class Settings(BaseSettings):
|
|
| 11 |
# Gemini AI Configuration
|
| 12 |
gemini_api_key: str = os.getenv("GEMINI_API_KEY", "")
|
| 13 |
gemini_model: str = "gemini-2.5-flash"
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
# FAISS Index Paths
|
| 19 |
-
faiss_indexes_base_path: str = os.getenv("FAISS_INDEXES_PATH", "./faiss_indexes")
|
| 20 |
-
|
| 21 |
# Index file paths
|
| 22 |
constitution_index_path: str = f"{faiss_indexes_base_path}/constitution_bgeLarge.index"
|
| 23 |
constitution_chunks_path: str = f"{faiss_indexes_base_path}/constitution_chunks.json"
|
|
|
|
| 11 |
# Gemini AI Configuration
|
| 12 |
gemini_api_key: str = os.getenv("GEMINI_API_KEY", "")
|
| 13 |
gemini_model: str = "gemini-2.5-flash"
|
| 14 |
+
# Hugging Face Spaces or system-level env will inject these
|
| 15 |
+
legal_bert_model_path: str = os.environ.get("MODEL_PATH", "/tmp/legalbert_model")
|
| 16 |
+
faiss_indexes_base_path: str = os.environ.get("FAISS_INDEX_PATH", "/tmp/faiss_indexes")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
# Index file paths
|
| 18 |
constitution_index_path: str = f"{faiss_indexes_base_path}/constitution_bgeLarge.index"
|
| 19 |
constitution_chunks_path: str = f"{faiss_indexes_base_path}/constitution_chunks.json"
|