Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import pandas as pd,numpy as np
|
| 2 |
-
import
|
| 3 |
import streamlit as st
|
| 4 |
|
| 5 |
st.title("User Behavior Using Mobile Prediction")
|
|
@@ -14,7 +14,8 @@ Battery_Drain= st.number_input("Enter the Battery Drain")
|
|
| 14 |
Number_of_Apps_Installed = st.number_input("Enter the Number of Apps Installed")
|
| 15 |
Data_Usage = st.number_input("Enter the Data Usage")
|
| 16 |
|
| 17 |
-
model_2 =
|
|
|
|
| 18 |
|
| 19 |
if st.button("Submit"):
|
| 20 |
result = model_2.predict([[Device_Model,Operating_System,App_Usage_Time,Screen_On_Time,Battery_Drain,Number_of_Apps_Installed,Data_Usage,age,gender]])
|
|
|
|
| 1 |
import pandas as pd,numpy as np
|
| 2 |
+
import joblib
|
| 3 |
import streamlit as st
|
| 4 |
|
| 5 |
st.title("User Behavior Using Mobile Prediction")
|
|
|
|
| 14 |
Number_of_Apps_Installed = st.number_input("Enter the Number of Apps Installed")
|
| 15 |
Data_Usage = st.number_input("Enter the Data Usage")
|
| 16 |
|
| 17 |
+
model_2 = joblib.load(r"Mobile_data_user_behaviour/rfc.pkl")) #pickle file path
|
| 18 |
+
|
| 19 |
|
| 20 |
if st.button("Submit"):
|
| 21 |
result = model_2.predict([[Device_Model,Operating_System,App_Usage_Time,Screen_On_Time,Battery_Drain,Number_of_Apps_Installed,Data_Usage,age,gender]])
|