Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -107,8 +107,9 @@ def download_button(object_to_download, download_filename, button_text, file_ext
|
|
107 |
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 |
-
|
|
|
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])
|
|
|
107 |
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 |
+
column = data["S11"].values.reshape(1,-1)
|
112 |
+
with open("automl4.pkl", "rb") as f:
|
113 |
model = pickle.load(f)
|
114 |
pred_clip = model.predict([column])
|
115 |
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])
|