Spaces:
Sleeping
Sleeping
Rajan Sharma
commited on
Update settings.py
Browse files- settings.py +23 -20
settings.py
CHANGED
|
@@ -1,24 +1,27 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
|
| 5 |
-
PERSIST_CONTENT
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
"
|
| 12 |
-
"
|
| 13 |
-
"
|
| 14 |
-
"
|
|
|
|
|
|
|
|
|
|
| 15 |
}
|
| 16 |
|
| 17 |
-
#
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
RAG_STORE_DIR = Path("rag_store")
|
|
|
|
| 1 |
+
# settings.py
|
| 2 |
+
import os
|
| 3 |
|
| 4 |
+
# Basic settings
|
| 5 |
+
SNAPSHOT_PATH = os.getenv("SNAPSHOT_PATH", "snapshot.json")
|
| 6 |
+
PERSIST_CONTENT = os.getenv("PERSIST_CONTENT", "false").lower() == "true"
|
| 7 |
|
| 8 |
+
# Healthcare-specific settings
|
| 9 |
+
HEALTHCARE_SETTINGS = {
|
| 10 |
+
"phi_detection_enabled": True,
|
| 11 |
+
"min_facility_count_for_aggregation": 10,
|
| 12 |
+
"default_occupancy_threshold": 85.0, # Percentage
|
| 13 |
+
"bed_change_significance_threshold": 5.0, # Percentage
|
| 14 |
+
"supported_file_types": [".csv", ".xlsx", ".pdf", ".docx", ".txt"],
|
| 15 |
+
"healthcare_keywords": [
|
| 16 |
+
"hospital", "patient", "bed", "care", "health", "medical", "clinical",
|
| 17 |
+
"facility", "nursing", "residential", "ambulatory", "healthcare", "occupancy"
|
| 18 |
+
]
|
| 19 |
}
|
| 20 |
|
| 21 |
+
# Model settings
|
| 22 |
+
MODEL_SETTINGS = {
|
| 23 |
+
"max_new_tokens": 2048,
|
| 24 |
+
"temperature": 0.3,
|
| 25 |
+
"top_p": 0.9,
|
| 26 |
+
"repetition_penalty": 1.15
|
| 27 |
+
}
|
|
|