Spaces:
Runtime error
Runtime error
Update app.py
Browse filesadd automl3 model for prediction
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("
|
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])
|