tajuarAkash commited on
Commit
ab2076c
·
verified ·
1 Parent(s): eefab7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -5,8 +5,8 @@ import pandas as pd
5
  from sklearn.preprocessing import StandardScaler
6
 
7
  # Load the trained model from Hugging Face (if hosted there)
8
- # You can replace 'tajuarAkash/my-model' with the actual repository name on Hugging Face
9
- model = joblib.load('random_forest_model.joblib') # For local file if uploaded to Space
10
 
11
  # Title and description for the app
12
  st.title("Insurance Claim Fraud Detection")
@@ -55,7 +55,3 @@ if st.button('Predict Fraud'):
55
  st.write("This claim is predicted to be **fraudulent**.")
56
  else:
57
  st.write("This claim is predicted to be **legitimate**.")
58
-
59
-
60
- #second
61
-
 
5
  from sklearn.preprocessing import StandardScaler
6
 
7
  # Load the trained model from Hugging Face (if hosted there)
8
+ # If your model file is in a sub-folder like 'models', use the correct path
9
+ model = joblib.load('random_forest_model.joblib') # Correct this if needed
10
 
11
  # Title and description for the app
12
  st.title("Insurance Claim Fraud Detection")
 
55
  st.write("This claim is predicted to be **fraudulent**.")
56
  else:
57
  st.write("This claim is predicted to be **legitimate**.")