Spaces:
Runtime error
Runtime error
Update api.py
Browse files
api.py
CHANGED
|
@@ -14,7 +14,7 @@ app = FastAPI()
|
|
| 14 |
model_path = hf_hub_download(
|
| 15 |
repo_id="haseebnawazz/sleep-stage-classifier-model", # Update with your HF model repo
|
| 16 |
filename="model.joblib",
|
| 17 |
-
cache_dir="/
|
| 18 |
)
|
| 19 |
model = joblib.load(model_path)
|
| 20 |
|
|
|
|
| 14 |
model_path = hf_hub_download(
|
| 15 |
repo_id="haseebnawazz/sleep-stage-classifier-model", # Update with your HF model repo
|
| 16 |
filename="model.joblib",
|
| 17 |
+
cache_dir="/tmp/hf_cache" # Ensure the cache is stored in a writable directory
|
| 18 |
)
|
| 19 |
model = joblib.load(model_path)
|
| 20 |
|