Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
import pickle
|
3 |
import numpy as np
|
|
|
|
|
|
|
4 |
|
5 |
# Load your saved model
|
6 |
with open('xgb_credit_score_model.pkl', 'rb') as file:
|
@@ -42,4 +45,4 @@ Enter your details to get a prediction of your credit score category.
|
|
42 |
# Define the Gradio interface
|
43 |
gr.Interface(fn=predict_credit_score, inputs=inputs, outputs="text",
|
44 |
title="Credit Score Predictor",
|
45 |
-
description=description).launch()
|
|
|
1 |
import gradio as gr
|
2 |
import pickle
|
3 |
import numpy as np
|
4 |
+
import warnings
|
5 |
+
|
6 |
+
warnings.filterwarnings("ignore", category=UserWarning, message="If you are loading a serialized model")
|
7 |
|
8 |
# Load your saved model
|
9 |
with open('xgb_credit_score_model.pkl', 'rb') as file:
|
|
|
45 |
# Define the Gradio interface
|
46 |
gr.Interface(fn=predict_credit_score, inputs=inputs, outputs="text",
|
47 |
title="Credit Score Predictor",
|
48 |
+
description=description).launch()
|