Views
No views yet
1from huggingface_hub import hf_hub_download
2import joblib
3
4# Baixando o modelo direto do seu repositório real
5model = joblib.load(hf_hub_download("LeonardoKoide/cred_aprov-v1", "model.pkl"))
6
7# Exemplo de input: renda_mensal, divida_atual, historico_pagamentos, score_credito, valor_solicitado, idade, num_dependentes
8features = [[5000.0, 1000.0, 48, 800, 15000.0, 35, 1]]
9prediction = model.predict(features)