HugoNeres commited on
Commit
4d7e186
·
verified ·
1 Parent(s): 9cbdb2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -13,6 +13,11 @@ st.set_page_config(page_title="CrediFast Risk System", layout="wide")
13
  st.title("🏦 CrediFast: Sistema Integrado de Análise de Risco")
14
 
15
  # --- CARREGAMENTO OTIMIZADO ---
 
 
 
 
 
16
  @st.cache_data
17
  def load_data():
18
  return pd.read_csv("dados_credito_clean.csv")
 
13
  st.title("🏦 CrediFast: Sistema Integrado de Análise de Risco")
14
 
15
  # --- CARREGAMENTO OTIMIZADO ---
16
+ @st.cache_resource
17
+ def load_system():
18
+ with open("sistema_risco_completo.pkl", "rb") as f:
19
+ return pickle.load(f)
20
+
21
  @st.cache_data
22
  def load_data():
23
  return pd.read_csv("dados_credito_clean.csv")