Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
keanteng
/
wqd7001
like
1
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
2e7236e
wqd7001
/
backend
/
model.py
keanteng
update
53a9f04
23 days ago
raw
Copy download link
history
blame
Safe
198 Bytes
import
joblib
import
sys
def
load_model
(
file_path
):
with
open
(file_path,
'rb'
)
as
f:
model = joblib.load(f)
print
(
f"Model loaded from
{file_path}
"
, file=sys.stderr)
return
model