Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- __pycache__/app.cpython-39.pyc +0 -0
- app.py +5 -5
- model/trained_causal_model_whole_city.pkl +3 -0
__pycache__/app.cpython-39.pyc
CHANGED
|
Binary files a/__pycache__/app.cpython-39.pyc and b/__pycache__/app.cpython-39.pyc differ
|
|
|
app.py
CHANGED
|
@@ -8,15 +8,15 @@ from typing import List, Optional
|
|
| 8 |
|
| 9 |
# Download your model pickle from the Hub on startup
|
| 10 |
#model_path = hf_hub_download(repo_id="Projects-by-IF/causal-model-Z15-v2", filename="trained_causal_model_v4.pkl")
|
| 11 |
-
model_path = hf_hub_download(repo_id="
|
| 12 |
-
|
| 13 |
-
with open(model_path, "rb") as f:
|
| 14 |
-
|
| 15 |
|
| 16 |
import joblib
|
| 17 |
import os
|
| 18 |
MODEL_DIR = r"./model"
|
| 19 |
-
MODEL_FILE = "
|
| 20 |
model_path = os.path.join(MODEL_DIR, MODEL_FILE)
|
| 21 |
|
| 22 |
app = FastAPI()
|
|
|
|
| 8 |
|
| 9 |
# Download your model pickle from the Hub on startup
|
| 10 |
#model_path = hf_hub_download(repo_id="Projects-by-IF/causal-model-Z15-v2", filename="trained_causal_model_v4.pkl")
|
| 11 |
+
# model_path = hf_hub_download(repo_id="Projects-by-IF/causal-model-temp", filename="trained_causal_model_whole_city.pkl")
|
| 12 |
+
#
|
| 13 |
+
# with open(model_path, "rb") as f:
|
| 14 |
+
# model = pickle.load(f)
|
| 15 |
|
| 16 |
import joblib
|
| 17 |
import os
|
| 18 |
MODEL_DIR = r"./model"
|
| 19 |
+
MODEL_FILE = "trained_causal_model_whole_city.pkl"
|
| 20 |
model_path = os.path.join(MODEL_DIR, MODEL_FILE)
|
| 21 |
|
| 22 |
app = FastAPI()
|
model/trained_causal_model_whole_city.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67a43dd28071a13f93adbd5a0495101c93de36ea45d4a2506289bbd30bebcf06
|
| 3 |
+
size 134
|