Shikun commited on
Commit
ed3b148
·
1 Parent(s): 5f3da87

Update app.py

Browse files

add automl3 model for prediction

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -108,7 +108,7 @@ file_upload = st.file_uploader("Upload a csv file", type="csv")
108
  if file_upload is not None:
109
  data = pd.read_csv(file_upload)
110
  column = data["S11"].iloc[1:].values
111
- with open("automl.pkl", "rb") as f:
112
  model = pickle.load(f)
113
  pred_clip = model.predict([column])
114
  pred_clip = np.clip(pred_clip, [0.2,0.4,3.9,0.2,13.9,13.8,13.2],[1.01,1.21,4.71,0.8,14.701,14.201,14.001])
 
108
  if file_upload is not None:
109
  data = pd.read_csv(file_upload)
110
  column = data["S11"].iloc[1:].values
111
+ with open("automl3.pkl", "rb") as f:
112
  model = pickle.load(f)
113
  pred_clip = model.predict([column])
114
  pred_clip = np.clip(pred_clip, [0.2,0.4,3.9,0.2,13.9,13.8,13.2],[1.01,1.21,4.71,0.8,14.701,14.201,14.001])