Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
#
|
| 9 |
-
model = joblib.load('random_forest_model.joblib') #
|
| 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**.")
|
|
|
|
|
|
|
|
|
|
|
|