Spaces:
Running
Running
Delete download_models.py
Browse files- download_models.py +0 -20
download_models.py
DELETED
|
@@ -1,20 +0,0 @@
|
|
| 1 |
-
import requests
|
| 2 |
-
import os
|
| 3 |
-
|
| 4 |
-
MODEL_DIR = "models"
|
| 5 |
-
os.makedirs(MODEL_DIR, exist_ok=True)
|
| 6 |
-
|
| 7 |
-
files = {
|
| 8 |
-
"preprocessor.joblib": "https://huggingface.co/<your-path>/preprocessor.joblib",
|
| 9 |
-
"stress_model.joblib": "https://huggingface.co/<your-path>/stress_model.joblib",
|
| 10 |
-
"hormones_model.joblib": "https://huggingface.co/<your-path>/hormones_model.joblib",
|
| 11 |
-
"wellness_model.joblib": "https://huggingface.co/<your-path>/wellness_model.joblib",
|
| 12 |
-
}
|
| 13 |
-
|
| 14 |
-
for filename, url in files.items():
|
| 15 |
-
print(f"Downloading {filename} ...")
|
| 16 |
-
r = requests.get(url)
|
| 17 |
-
with open(f"{MODEL_DIR}/{filename}", "wb") as f:
|
| 18 |
-
f.write(r.content)
|
| 19 |
-
|
| 20 |
-
print("✅ All models downloaded successfully.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|