nukimayasari commited on
Commit
9a3f13b
·
verified ·
1 Parent(s): 326394b

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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()