scorpion237 commited on
Commit
028535f
1 Parent(s): 6939570

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -423,11 +423,11 @@ def main():
423
  st.subheader(":orange[Neural Network]")
424
  ann = load_model('ann.h5')
425
  pred_proba = ann.predict(data_input)
 
426
  if pred == 1:
427
  st.write(":orange[__Le pret peut etre octroyer__] :white_check_mark:")
428
  else:
429
  st.write(":red[__Desole,...__] :disappointed:")
430
- pred = np.where(pred_proba < 0.5, 0, 1)
431
  loan_status = np.array(['N','Y'])
432
  prediction = pd.DataFrame(loan_status[pred], columns=['prediction'])
433
  df = pd.concat([data_input, prediction], axis=1)
 
423
  st.subheader(":orange[Neural Network]")
424
  ann = load_model('ann.h5')
425
  pred_proba = ann.predict(data_input)
426
+ pred = np.where(pred_proba < 0.5, 0, 1)
427
  if pred == 1:
428
  st.write(":orange[__Le pret peut etre octroyer__] :white_check_mark:")
429
  else:
430
  st.write(":red[__Desole,...__] :disappointed:")
 
431
  loan_status = np.array(['N','Y'])
432
  prediction = pd.DataFrame(loan_status[pred], columns=['prediction'])
433
  df = pd.concat([data_input, prediction], axis=1)