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