MohammedJafar-2001 commited on
Commit
e6e5e7f
·
verified ·
1 Parent(s): 8092415

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import pandas as pd,numpy as np
2
- import pickle
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 = pickle.load(open(r"Mobile_data_user_behaviour/rfc.pkl","rb")) #pickle file path
 
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]])