Muhamadinsani17 commited on
Commit
2d8a2a8
·
1 Parent(s): 6a09fda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import streamlit as st
2
  import pandas as pd
3
- import pickle
4
 
5
  st.header('FTDS Model Deployment')
6
  st.write("""
@@ -45,8 +45,7 @@ input = user_input()
45
  st.subheader('User Input')
46
  st.write(input)
47
 
48
- with open("my_model.pkl", "rb") as f:
49
- load_model = pickle.load(f)
50
 
51
  if st.button("Predict"):
52
  prediction = load_model.predict(input)
 
1
  import streamlit as st
2
  import pandas as pd
3
+ import joblib
4
 
5
  st.header('FTDS Model Deployment')
6
  st.write("""
 
45
  st.subheader('User Input')
46
  st.write(input)
47
 
48
+ load_model = joblib.load("my_model.pkl")
 
49
 
50
  if st.button("Predict"):
51
  prediction = load_model.predict(input)