Spaces:
Sleeping
Sleeping
Commit
Β·
40e9eac
1
Parent(s):
171c234
Additional comments
Browse files- backend/requirements.txt +12 -1
- data_enhancement.py +0 -1
- nginx.conf +2 -2
- predictive_modelling.py +0 -1
backend/requirements.txt
CHANGED
@@ -14,7 +14,7 @@ gcsfs==2024.12.0
|
|
14 |
google-cloud-storage==2.11.0
|
15 |
|
16 |
# RAG & embeddings
|
17 |
-
pytorch-lightning==2.5.1
|
18 |
langchain
|
19 |
langchain-huggingface
|
20 |
sentence-transformers
|
@@ -44,3 +44,14 @@ HuggingFace
|
|
44 |
huggingface_hub
|
45 |
huggingface_hub[hf_xet]
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
google-cloud-storage==2.11.0
|
15 |
|
16 |
# RAG & embeddings
|
17 |
+
pytorch-lightning==2.5.1
|
18 |
langchain
|
19 |
langchain-huggingface
|
20 |
sentence-transformers
|
|
|
44 |
huggingface_hub
|
45 |
huggingface_hub[hf_xet]
|
46 |
|
47 |
+
# ββββββββββββββββββββββββββββββββββββββββββββββββ
|
48 |
+
|
49 |
+
joblib
|
50 |
+
shap
|
51 |
+
matplotlib
|
52 |
+
scipy
|
53 |
+
scikit-learn
|
54 |
+
imbalanced-learn
|
55 |
+
xgboost
|
56 |
+
evidently
|
57 |
+
optuna
|
data_enhancement.py
CHANGED
@@ -33,7 +33,6 @@ DATASETS = [
|
|
33 |
]
|
34 |
|
35 |
# ==== REGEX FOR CLEANING =====================================================
|
36 |
-
|
37 |
_PROJECT_ID_RE = re.compile(r"^(?:19|20)\d{2}")
|
38 |
_GENERIC_NUM_RE = re.compile(r"\d{4}")
|
39 |
|
|
|
33 |
]
|
34 |
|
35 |
# ==== REGEX FOR CLEANING =====================================================
|
|
|
36 |
_PROJECT_ID_RE = re.compile(r"^(?:19|20)\d{2}")
|
37 |
_GENERIC_NUM_RE = re.compile(r"\d{4}")
|
38 |
|
nginx.conf
CHANGED
@@ -22,7 +22,7 @@ http {
|
|
22 |
listen [::]:4444 default_server;
|
23 |
server_name _;
|
24 |
|
25 |
-
# Proxy
|
26 |
location / {
|
27 |
proxy_pass http://127.0.0.1:8000;
|
28 |
proxy_http_version 1.1;
|
@@ -36,7 +36,7 @@ http {
|
|
36 |
proxy_redirect off;
|
37 |
}
|
38 |
|
39 |
-
# Proxy
|
40 |
location /api/ {
|
41 |
proxy_pass http://127.0.0.1:7860/api/;
|
42 |
proxy_http_version 1.1;
|
|
|
22 |
listen [::]:4444 default_server;
|
23 |
server_name _;
|
24 |
|
25 |
+
# Proxy React/Vite build on port 8000
|
26 |
location / {
|
27 |
proxy_pass http://127.0.0.1:8000;
|
28 |
proxy_http_version 1.1;
|
|
|
36 |
proxy_redirect off;
|
37 |
}
|
38 |
|
39 |
+
# Proxy FastAPI app on port 7860
|
40 |
location /api/ {
|
41 |
proxy_pass http://127.0.0.1:7860/api/;
|
42 |
proxy_http_version 1.1;
|
predictive_modelling.py
CHANGED
@@ -34,7 +34,6 @@ from evidently.presets import DataDriftPreset
|
|
34 |
import optuna
|
35 |
|
36 |
# --- Custom Transformers ---
|
37 |
-
|
38 |
# Transformer for binarizing multi-label columns (lists of categories per row)
|
39 |
class MultiLabelBinarizerTransformer(BaseEstimator, TransformerMixin):
|
40 |
"""Custom transformer to binarize multi-label (list of strings) columns.
|
|
|
34 |
import optuna
|
35 |
|
36 |
# --- Custom Transformers ---
|
|
|
37 |
# Transformer for binarizing multi-label columns (lists of categories per row)
|
38 |
class MultiLabelBinarizerTransformer(BaseEstimator, TransformerMixin):
|
39 |
"""Custom transformer to binarize multi-label (list of strings) columns.
|