Spaces:
Sleeping
Sleeping
Update app.py
Browse files18 unmodified lines19202122232478 unmodified lines10310410510610710810911011118 unmodified linesfrom sklearn.preprocessing import LabelEncoderfrom sklearn.impute import SimpleImputerfrom huggingface_hub import hf_hub_download# ββ Device ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββdevice = torch.device("cpu")78 unmodified linesclinical_scaler = pickle.load(f)print("Clinical scaler loaded")gb_path = hf_hub_download(repo_id=REPO_ID, filename="gb_clinical_model_v2.pkl")with open(gb_path, "rb") as f:gb_model = pickle.load(f)print("GB clinical model loaded")print("All models ready.")18 unmodified lines1920212223242578 unmodified lines10410510610710810911011118 unmodified linesfrom sklearn.preprocessing import LabelEncoderfrom sklearn.impute import SimpleImputerfrom huggingface_hub import hf_hub_downloadimport joblib# ββ Device ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββdevice = torch.device("cpu")78 unmodified linesclinical_scaler = pickle.load(f)print("Clinical scaler loaded")gb_path = hf_hub_download(repo_id=REPO_ID, filename="gb_clinical_model_joblib.pkl")gb_model = joblib.load(gb_path)print("GB clinical model loaded")print("All models ready.")
app.py+3-3