We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb1eba6 commit fd45055Copy full SHA for fd45055
4 files changed
.gitignore
@@ -5,7 +5,7 @@ __pycache__/
5
*.egg-info/
6
.venv/
7
venv/
8
-*.joblib
+# *.joblib # committed for Render deployment
9
10
# Node
11
node_modules/
ml/predict.py
@@ -18,6 +18,11 @@
18
def load_model():
19
global _model, _meta
20
if _model is None:
21
+ if not MODEL_PATH.exists():
22
+ from ml.train import train
23
+
24
+ print("Model not found. Training on first load...")
25
+ train()
26
_model = joblib.load(MODEL_PATH)
27
with open(META_PATH) as f:
28
_meta = json.load(f)
models/pe_detector.joblib
1.37 MB
render.yaml
@@ -6,6 +6,3 @@ services:
plan: free
buildCommand: pip install -r requirements.txt
startCommand: uvicorn api.routes:app --host 0.0.0.0 --port $PORT
- envVars:
- - key: PYTHON_VERSION
- value: 3.14.0
0 commit comments