Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -110,10 +110,10 @@ if file_upload is not None:
|
|
110 |
#column = data["S11"].iloc[1:].values
|
111 |
column = data["S11"].values
|
112 |
column = column.reshape(1,-1)
|
113 |
-
st.write(column.shape)
|
114 |
with open("automl4.pkl", "rb") as f:
|
115 |
model = pickle.load(f)
|
116 |
-
pred_clip = model.predict(
|
117 |
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])
|
118 |
predictions = pd.DataFrame(pred_clip.tolist(), columns = ["w1","w2","w3","s1","l1","l2","l3"])
|
119 |
|
|
|
110 |
#column = data["S11"].iloc[1:].values
|
111 |
column = data["S11"].values
|
112 |
column = column.reshape(1,-1)
|
113 |
+
#st.write(column.shape)
|
114 |
with open("automl4.pkl", "rb") as f:
|
115 |
model = pickle.load(f)
|
116 |
+
pred_clip = model.predict(column)
|
117 |
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])
|
118 |
predictions = pd.DataFrame(pred_clip.tolist(), columns = ["w1","w2","w3","s1","l1","l2","l3"])
|
119 |
|