Spaces:
Runtime error
Runtime error
Commit
•
93b0219
1
Parent(s):
e6936c2
First model version
Browse files- app.py +20 -3
- requirements.txt +2 -1
app.py
CHANGED
@@ -1,8 +1,25 @@
|
|
1 |
import streamlit as st
|
2 |
from pybanking.churn_prediction import model_churn
|
3 |
-
|
4 |
x = st.slider('Select a value')
|
5 |
-
st.write(
|
6 |
|
7 |
df = model_churn.get_data()
|
8 |
-
st.dataframe(df)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
from pybanking.churn_prediction import model_churn
|
3 |
+
import pandas as pd
|
4 |
x = st.slider('Select a value')
|
5 |
+
st.write('This is the input data')
|
6 |
|
7 |
df = model_churn.get_data()
|
8 |
+
st.dataframe(df.head(5))
|
9 |
+
|
10 |
+
model_names = [
|
11 |
+
"Logistic_Regression",
|
12 |
+
"Support_Vector_Machine",
|
13 |
+
"Support_Vector_Machine_Optimized",
|
14 |
+
"Decision_Tree",
|
15 |
+
"Neural_Network",
|
16 |
+
"Random_Forest"
|
17 |
+
]
|
18 |
+
option = st.selectbox(
|
19 |
+
'Which model would you like to use?',
|
20 |
+
model_names)
|
21 |
+
|
22 |
+
|
23 |
+
option2 = st.selectbox(
|
24 |
+
'Which dataset would you like to use for prediction?',
|
25 |
+
['Sample dataset','Upload custom'])
|
requirements.txt
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
pybanking
|
|
|
|
1 |
+
pybanking
|
2 |
+
pandas
|