Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import streamlit.components.v1 as components
|
3 |
+
import pandas as pd
|
4 |
+
import pickle
|
5 |
+
import P2Pdeliquency
|
6 |
+
st.set_page_config(page_title="P2P Lending Deliquency", layout="wide")
|
7 |
+
|
8 |
+
col1= st.columns([1])
|
9 |
+
|
10 |
+
with col1:
|
11 |
+
st.title('P2P Lending Deliquency')
|
12 |
+
|
13 |
+
data= P2Pdeliquency.read_data()
|
14 |
+
st.subheader('This is a Preview of the Data')
|
15 |
+
|
16 |
+
st.dataframe(train_df.head(5))
|
17 |
+
model = pickle.load(open('model.pkl', 'rb'))
|
18 |
+
st.write("Model: Ridge Regression")
|
19 |
+
X_test_poly,model,y_test=train(data)
|
20 |
+
y_pred=predict(X_test_poly,model,y_test)
|